mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
fix gem output
This commit is contained in:
@@ -88,7 +88,8 @@ function Get-HomebrewVersion {
|
||||
}
|
||||
|
||||
function Get-GemVersion {
|
||||
$(gem --version 2>&1) -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$result = Get-CommandResult "gem --version"
|
||||
$result.Output -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$gemVersion = $Matches.version
|
||||
return "Gem $gemVersion"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user