mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 03:57:32 +00:00
[macOS] Update Packer version function (#12737)
This commit is contained in:
@@ -231,10 +231,8 @@ function Get-WgetVersion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Get-PackerVersion {
|
function Get-PackerVersion {
|
||||||
# Packer 1.7.1 has a bug and outputs version to stderr instead of stdout https://github.com/hashicorp/packer/issues/10855
|
$packerVersion = Run-Command "packer --version" | Select-String "Packer" | Select-Object -First 1 | Take-Part -Part 1
|
||||||
$result = Run-Command "packer --version"
|
return ($packerVersion.Trim("v"))
|
||||||
$packerVersion = [regex]::matches($result, "(\d+.){2}\d+").Value
|
|
||||||
return $packerVersion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-OpenSSLVersion {
|
function Get-OpenSSLVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user