summaryrefslogtreecommitdiff
path: root/habitat
diff options
context:
space:
mode:
authorJohn Snow <thelunaticscripter@outlook.com>2020-04-01 09:39:09 -0400
committerJohn Snow <thelunaticscripter@outlook.com>2020-04-01 09:39:09 -0400
commitc04f686c50ac33491b039cdc5bc2f1992ef83738 (patch)
tree5f093b32dc38c6924b4bd3708f5cf40775118391 /habitat
parent2943c093e24027c618f3408e51ad37dc83c3885b (diff)
downloadchef-c04f686c50ac33491b039cdc5bc2f1992ef83738.tar.gz
make it one line
Signed-off-by: John Snow <thelunaticscripter@outlook.com>
Diffstat (limited to 'habitat')
-rw-r--r--habitat/plan.ps13
1 files changed, 1 insertions, 2 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1
index 5b26071f2b..719f5e7a5a 100644
--- a/habitat/plan.ps1
+++ b/habitat/plan.ps1
@@ -16,8 +16,7 @@ $pkg_deps=@(
)
function Invoke-Begin {
- $hab_version = (hab --version).split(" ")
- [Version]$hab_version = $hab_version[1].split("/")[0]
+ [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."