summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john.mccrae@progress.com>2023-01-10 07:31:42 -0800
committerJohn <john.mccrae@progress.com>2023-01-10 07:31:42 -0800
commita2d10b3dacfd5939dcf6203052b09baab0993958 (patch)
tree43b9fa2491694634e90dfa5ff6ba8d9df1150eab
parentfb27d88a9e60efaf00022b17c7c81e4eb1f4ff64 (diff)
downloadchef-a2d10b3dacfd5939dcf6203052b09baab0993958.tar.gz
refactoring the hab powershell script to ensure habitat gets installed. Backport from chef-18
Signed-off-by: John <john.mccrae@progress.com>
-rw-r--r--.expeditor/scripts/ensure-minimum-viable-hab.ps18
1 files changed, 7 insertions, 1 deletions
diff --git a/.expeditor/scripts/ensure-minimum-viable-hab.ps1 b/.expeditor/scripts/ensure-minimum-viable-hab.ps1
index 5075055612..6224fe4707 100644
--- a/.expeditor/scripts/ensure-minimum-viable-hab.ps1
+++ b/.expeditor/scripts/ensure-minimum-viable-hab.ps1
@@ -18,4 +18,10 @@ 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") \ No newline at end of file
+$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