summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-10-20 15:48:48 +0600
committerJohn McCrae <john.mccrae@progress.com>2022-10-20 16:34:54 +0600
commit3521bb2a3ec35359239d2d940c5fc45b78e19707 (patch)
treef7c06485518ab526c1ca93f9dcedf30fc3a3e003
parentca66e97d60a946c2e74582676d9eda223bae353d (diff)
downloadchef-3521bb2a3ec35359239d2d940c5fc45b78e19707.tar.gz
Lets install Hab with Choco! Take 6!
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--.expeditor/scripts/ensure-minimum-viable-hab.ps16
1 files changed, 4 insertions, 2 deletions
diff --git a/.expeditor/scripts/ensure-minimum-viable-hab.ps1 b/.expeditor/scripts/ensure-minimum-viable-hab.ps1
index c7c8560b86..f0d368a7f1 100644
--- a/.expeditor/scripts/ensure-minimum-viable-hab.ps1
+++ b/.expeditor/scripts/ensure-minimum-viable-hab.ps1
@@ -13,7 +13,8 @@ try {
Write-Host "`n"
Get-Command Hab
Set-ExecutionPolicy Bypass -Scope Process -Force
- Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.ps1'))
+ choco install habitat
+ # Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.ps1'))
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
$test_output = Get-ChildItem -path c:\ -File "hab.exe" -Recurse -ErrorAction SilentlyContinue
Write-Host "Here's Hab`n"
@@ -35,7 +36,8 @@ catch {
# This install fails if Hab isn't on the path when we check for the version. This ensures it is installed
Write-Host "--- :habicat: Forcing an install of habitat"
Set-ExecutionPolicy Bypass -Scope Process -Force
- Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.ps1'))
+ choco install habitat
+ # Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.ps1'))
$test_output = Get-ChildItem -path c:\ -File "hab.exe" -Recurse -ErrorAction SilentlyContinue
Write-Host "Here's Hab`n"
Write-Host $test_output