mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 04:37:09 +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"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ function Initialize-RustEnvironment {
|
||||
ln -sf "/usr/share/rust/.rustup" $HOME/.rustup
|
||||
ln -sf "/usr/share/rust/.cargo" $HOME/.cargo
|
||||
}
|
||||
|
||||
function Get-RustVersion {
|
||||
Initialize-RustEnvironment
|
||||
$rustVersion = $(rustc --version) | Take-OutputPart -Part 1
|
||||
|
||||
Reference in New Issue
Block a user