diff options
author | John McCrae <john.mccrae@progress.com> | 2022-10-31 06:58:56 +0600 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-10-31 06:58:56 +0600 |
commit | 78404dfb562ef36c9e106e531fa7c3ed46bf6d52 (patch) | |
tree | c993125ed45e0377b7eb291c19e91da29df056ce | |
parent | c2d8f9209ee9d1f54b6fcd4a0f7ba7bf19fe4d44 (diff) | |
download | chef-78404dfb562ef36c9e106e531fa7c3ed46bf6d52.tar.gz |
OOh, maybe
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | habitat/plan.ps1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index efc3b9e079..6433fe98f8 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -95,9 +95,9 @@ function Invoke-Download() { Write-Output "`n *** Installing Choco *** `n" Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) choco install git -y - $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") - $full_git_path = $("C:\\Program Files\\Git\\cmd\\git.exe") - Invoke-Expression -Command "$($full_git_path) archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose" -ErrorAction Stop -Verbose + $env:Path = "C:\Program` Files\Git\cmd;" + [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") + # $full_git_path = $("C:\\Program Files\\Git\\cmd\\git.exe") + Invoke-Expression -Command "git archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose" -ErrorAction Stop -Verbose } catch { Write-BuildLine "Plan.ps1 threw an error in Invoke-Download - An error occurred:" |