summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-10-20 15:56:23 +0600
committerJohn McCrae <john.mccrae@progress.com>2022-10-20 16:34:54 +0600
commita9e09c39152a92b00e87c03e71c9b2f550ed411d (patch)
tree0f651a5bd2630ce1a838bac3fc28ce0dc390eabe
parent3521bb2a3ec35359239d2d940c5fc45b78e19707 (diff)
downloadchef-a9e09c39152a92b00e87c03e71c9b2f550ed411d.tar.gz
Lets install Hab with Choco! Take 7! Adding global Confirmation
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 f0d368a7f1..db3ebc4d59 100644
--- a/.expeditor/scripts/ensure-minimum-viable-hab.ps1
+++ b/.expeditor/scripts/ensure-minimum-viable-hab.ps1
@@ -13,8 +13,9 @@ try {
Write-Host "`n"
Get-Command Hab
Set-ExecutionPolicy Bypass -Scope Process -Force
- choco install habitat
- # Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.ps1'))
+ # choco feature enable -n=allowGlobalConfirmation
+ # 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"
@@ -36,6 +37,7 @@ 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
+ choco feature enable -n=allowGlobalConfirmation
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