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 {
|
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
|
$gemVersion = $Matches.version
|
||||||
return "Gem $gemVersion"
|
return "Gem $gemVersion"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ function Initialize-RustEnvironment {
|
|||||||
ln -sf "/usr/share/rust/.rustup" $HOME/.rustup
|
ln -sf "/usr/share/rust/.rustup" $HOME/.rustup
|
||||||
ln -sf "/usr/share/rust/.cargo" $HOME/.cargo
|
ln -sf "/usr/share/rust/.cargo" $HOME/.cargo
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-RustVersion {
|
function Get-RustVersion {
|
||||||
Initialize-RustEnvironment
|
Initialize-RustEnvironment
|
||||||
$rustVersion = $(rustc --version) | Take-OutputPart -Part 1
|
$rustVersion = $(rustc --version) | Take-OutputPart -Part 1
|
||||||
|
|||||||
Reference in New Issue
Block a user