mirror of
https://github.com/actions/runner-images.git
synced 2025-12-23 18:11:15 +08:00
Minor fix
This commit is contained in:
@@ -50,7 +50,7 @@ function Get-ToolVersion {
|
||||
)
|
||||
|
||||
$toolRawVersion = Invoke-Expression "$ToolPath --version"
|
||||
$toolRawVersion.Split([System.Environment]::NewLine)[$VersionLineNumber] -match "\d+\.\d+(\.\d+)?"
|
||||
$toolRawVersion.Split([System.Environment]::NewLine)[$VersionLineNumber] -match "\d+\.\d+(\.\d+)?" | Out-Null
|
||||
$toolVersion = $matches[0]
|
||||
return $toolVersion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user