mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[Windows] Stop SoftwareReport script if error (#4801)
* Stop SoftwareReport script if error * Validate blank versions * Fix tables parsing
This commit is contained in:
committed by
GitHub
parent
d4793cf476
commit
7518d04a3a
@@ -122,7 +122,7 @@ function Get-AndroidPlatformVersions {
|
||||
|
||||
function Get-AndroidCommandLineToolsVersion {
|
||||
$commandLineTools = Get-AndroidSDKManagerPath
|
||||
(& $commandLineTools --version | Out-String).Trim() -match "(?<version>^(\d+\.){1,}\d+$)" | Out-Null
|
||||
(cmd /c "$commandLineTools --version 2>NUL" | Out-String).Trim() -match "(?<version>^(\d+\.){1,}\d+$)" | Out-Null
|
||||
$commandLineToolsVersion = $Matches.Version
|
||||
return $commandLineToolsVersion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user