mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 02:20:20 +08:00
Minor fix
This commit is contained in:
@@ -50,7 +50,7 @@ function Get-ToolVersion {
|
|||||||
)
|
)
|
||||||
|
|
||||||
$toolRawVersion = Invoke-Expression "$ToolPath --version"
|
$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]
|
$toolVersion = $matches[0]
|
||||||
return $toolVersion
|
return $toolVersion
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user