mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 08:22:12 +00:00
Change pattern for Rscript output (#5437)
This commit is contained in:
@@ -31,7 +31,7 @@ function Get-BicepVersion {
|
||||
}
|
||||
|
||||
function Get-RVersion {
|
||||
($(cmd /c "Rscript --version 2>&1") | Out-String) -match "R scripting front-end version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
($(cmd /c "Rscript --version 2>&1") | Out-String) -match "Rscript .* version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$rVersion = $Matches.Version
|
||||
return "R $rVersion"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user