Change pattern for Rscript output (#5437)

This commit is contained in:
Mikhail Timofeev
2022-04-26 16:26:51 +04:00
committed by GitHub
parent d6ddbcd278
commit 94788ae5ea

View File

@@ -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"
}