diff --git a/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 b/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 index ef18f08..323ec98 100644 --- a/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 +++ b/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 @@ -21,7 +21,7 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi $Request = Invoke-WebRequest $Uri $Values = @{ - Folder = '$Path\PR{0}' -f ($Uri.Split('/')[-1]) + Folder = '{0}\PR{1}' -f $Path, ($Uri.Split('/')[-1]) GitHubUri = 'https://github.com/{0}' -f $Request.Links.Where{$_.class -eq 'no-underline'}[1].title.split(':')[0] Branch = $Request.Links.Where{$_.class -eq 'no-underline'}[1].title.split(':')[1] }