mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[ubuntu] Fix packer output for version 1.7.1 (#3098)
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user