blob: 175c7d48905ae446b4905313e55d393e4ce75978 (
plain)
1
2
3
4
5
6
7
8
9
|
$hab_version = (hab --version)
$hab_minor_version = $hab_version.split('.')[1]
if ( -not $? -Or $hab_minor_version -lt 85 ) {
Write-Host "--- :habicat: Installing the version of Habitat required"
install-habitat --version 0.85.0.20190916
if (-not $?) { throw "Hab version is older than 0.85 and could not update it." }
} else {
Write-Host "--- :habicat: :thumbsup: Minimum required version of Habitat already installed"
}
|