summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john.mccrae@progress.com>2023-01-10 07:37:14 -0800
committerJohn <john.mccrae@progress.com>2023-01-10 07:37:14 -0800
commit821798ec8d17c51d94ad71d320f320f404d62556 (patch)
tree7adf69f9d06abdc3a5df502120fc8c8378bb165c
parenta2d10b3dacfd5939dcf6203052b09baab0993958 (diff)
downloadchef-jfm/chef16_habitat_test.tar.gz
refactoring the hab powershell script to ensure habitat gets installed. Backport from chef-18jfm/chef16_habitat_test
Signed-off-by: John <john.mccrae@progress.com>
-rw-r--r--.expeditor/scripts/ensure-minimum-viable-hab.ps18
1 files changed, 1 insertions, 7 deletions
diff --git a/.expeditor/scripts/ensure-minimum-viable-hab.ps1 b/.expeditor/scripts/ensure-minimum-viable-hab.ps1
index 6224fe4707..5d1bf1f54b 100644
--- a/.expeditor/scripts/ensure-minimum-viable-hab.ps1
+++ b/.expeditor/scripts/ensure-minimum-viable-hab.ps1
@@ -18,10 +18,4 @@ catch {
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.ps1'))
}
Write-Host "--- :habicat: Refreshing the Path"
-$env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
-
-Write-Host "--- :habicat: Finding Habitat using Get-Command"
-Get-Command hab
-
-Write-Host "--- :habicat: Finding Habitat using Get-ChildItem"
-Get-ChildItem -Path c:\ -Name hab.exe -Recurse \ No newline at end of file
+$env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") + ";C:\ProgramData\Habitat;"