Minor fix

This commit is contained in:
Vladimir Safonkin
2020-03-25 19:04:11 +03:00
parent b0a54cf664
commit 89c2c31767

View File

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