diff options
author | John Snow <thelunaticscripter@outlook.com> | 2020-04-01 09:39:09 -0400 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-04-01 12:20:34 -0700 |
commit | cf01e97dcd23fabfb76355390ba2c2008cc5dc7a (patch) | |
tree | 2200c8280ac67df75b97372f13ecc9a9ab042efc /habitat | |
parent | c972672e1ceb4a5e2e838516e9e6b5b73d3fb9bd (diff) | |
download | chef-cf01e97dcd23fabfb76355390ba2c2008cc5dc7a.tar.gz |
make it one line
Signed-off-by: John Snow <thelunaticscripter@outlook.com>
Diffstat (limited to 'habitat')
-rw-r--r-- | habitat/plan.ps1 | 3 |
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." |