diff options
author | John McCrae <john.mccrae@progress.com> | 2022-10-19 19:13:27 +0600 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-10-20 16:34:54 +0600 |
commit | 4789f3648d1424eb15ccd9875a3ef0781515718c (patch) | |
tree | 1b14fca1eba81979fba2aa4efd6f89c12cdf92f5 | |
parent | 1686ee1cdd14433d925db739c7c52fcc6636081c (diff) | |
download | chef-4789f3648d1424eb15ccd9875a3ef0781515718c.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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.expeditor/scripts/ensure-minimum-viable-hab.ps1 b/.expeditor/scripts/ensure-minimum-viable-hab.ps1 index 1f4309a67f..f6a1b37b1e 100644 --- a/.expeditor/scripts/ensure-minimum-viable-hab.ps1 +++ b/.expeditor/scripts/ensure-minimum-viable-hab.ps1 @@ -2,6 +2,10 @@ try { [Version]$hab_version = (hab --version).split(" ")[1].split("/")[0] 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" + $PSVersionTable + write-ouput "`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')) $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") |