mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 22:09:26 +00:00
softwarereport: do not use regex to get version of choco (#4536)
This commit is contained in:
committed by
GitHub
parent
5ab1cb345e
commit
a8096c59ab
@@ -111,9 +111,7 @@ function Get-NodeVersion {
|
||||
}
|
||||
|
||||
function Get-ChocoVersion {
|
||||
($(choco version) | Out-String) -match "v(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$chocoVersion = $Matches.Version
|
||||
return "Chocolatey $chocoVersion"
|
||||
return "Chocolatey $(choco --version)"
|
||||
}
|
||||
|
||||
function Get-VcpkgVersion {
|
||||
|
||||
Reference in New Issue
Block a user