mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[macOS] Fix output for packer 1.7.1 (#3100)
This commit is contained in:
@@ -293,7 +293,9 @@ function Get-SVNVersion {
|
||||
}
|
||||
|
||||
function Get-PackerVersion {
|
||||
$packerVersion = Run-Command "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 = Run-Command -Command "packer --version"
|
||||
$packerVersion = [regex]::matches($result, "(\d+.){2}\d+").Value
|
||||
return "Packer $packerVersion"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user