[ubuntu] Fix packer output for version 1.7.1 (#3098)

This commit is contained in:
Mikhail Timofeev
2021-04-05 17:09:48 +03:00
committed by GitHub
parent 0c064d0bdb
commit 0c440c82ca

View File

@@ -157,7 +157,10 @@ function Get-NvmVersion {
} }
function Get-PackerVersion { function Get-PackerVersion {
return "Packer $(packer --version)" # Packer 1.7.1 has a bug and outputs version to stderr instead of stdout https://github.com/hashicorp/packer/issues/10855
$result = (Get-CommandResult -Command "packer --version").Output
$packerVersion = [regex]::matches($result, "(\d+.){2}\d+").Value
return "Packer $packerVersion"
} }
function Get-PhantomJSVersion { function Get-PhantomJSVersion {