diff options
author | John McCrae <john.mccrae@progress.com> | 2022-10-19 19:26:32 +0600 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-10-20 16:34:54 +0600 |
commit | 8fd20902a0df230fa46313214fd269c373897533 (patch) | |
tree | 8bb1ac3ee8e5131964719583ddce10829556378e | |
parent | ec96241927c8c2526ab79e18b8e60042c6af4382 (diff) | |
download | chef-8fd20902a0df230fa46313214fd269c373897533.tar.gz |
Correcting for Hab not being installed
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | .expeditor/scripts/ensure-minimum-viable-hab.ps1 | 6 |
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 948d2ca085..cc7be753c7 100644 --- a/.expeditor/scripts/ensure-minimum-viable-hab.ps1 +++ b/.expeditor/scripts/ensure-minimum-viable-hab.ps1 @@ -3,10 +3,11 @@ try { if ($hab_version -lt [Version]"0.85.0" ) { Write-Host "--- :habicat: Installing the version of Habitat required" Write-Output "What version of Windows and PowerShell is this?`n" + write-output "`n" $PSVersionTable [System.Environment]::OSVersion Write-Output "What version of Hab is this? $((hab --version).split(" ")[1].split("/")[0])" - write-ouput "`n" + write-output "`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')) @@ -18,9 +19,10 @@ try { } catch { Write-Output "What version of Windows and PowerShell is this?`n" + write-output "`n" $PSVersionTable [System.Environment]::OSVersion - write-ouput "`n" + write-output "`n" # 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 |