diff options
Diffstat (limited to 'habitat/plan.ps1')
-rw-r--r-- | habitat/plan.ps1 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index e15f076ba3..719f5e7a5a 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -16,9 +16,8 @@ $pkg_deps=@( ) function Invoke-Begin { - $hab_version = (hab --version) - $hab_minor_version = $hab_version.split('.')[1] - if ( -not $? -Or $hab_minor_version -lt 85 ) { + [Version]$hab_version = (hab --version).split(" ")[1].split("/")[0] + if ($hab_version -lt [Version]"0.85.0" ) { Write-Warning "(╯°□°)╯︵ ┻━┻ I CAN'T WORK UNDER THESE CONDITIONS!" Write-Warning ":habicat: I'm being built with $hab_version. I need at least Hab 0.85.0, because I use the -IsPath option for setting/pushing paths in SetupEnvironment." throw "unable to build: required minimum version of Habitat not installed" |