summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-10-30 08:47:49 +0600
committerJohn McCrae <john.mccrae@progress.com>2022-10-30 08:47:49 +0600
commitc1e0cae9d90930cb1461960001b3b4650ee9670b (patch)
treefeca53abbbc04aa73e9a53d0f9be7f41d559c81a
parentea1666499cd1137e4b6507bfda091982617ea0c2 (diff)
downloadchef-c1e0cae9d90930cb1461960001b3b4650ee9670b.tar.gz
Is git even loaded?
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--habitat/plan.ps13
1 files changed, 1 insertions, 2 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1
index 56d55abfbe..813e2ee6f6 100644
--- a/habitat/plan.ps1
+++ b/habitat/plan.ps1
@@ -43,7 +43,7 @@ function Invoke-Download() {
# appropriate path within the repo and place the generated tarball in the
# location expected by do_unpack
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
- $git_path = "c:\\Program Files\\Git\\bin"
+ $git_path = "c:\\Program Files\\Git\\cmd"
$env:Path = $git_path + ";" + [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
try {
Push-Location (Resolve-Path "$PLAN_CONTEXT/../").Path
@@ -51,7 +51,6 @@ function Invoke-Download() {
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 gh -y
choco install git -y
- refrehsenv
$env:Path = $git_path + ";" + [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
Write-Output "Here is the Path : `n"
Write-Output $env:Path