mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 06:19:21 +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 {
|
function Get-ChocoVersion {
|
||||||
($(choco version) | Out-String) -match "v(?<version>\d+\.\d+\.\d+)" | Out-Null
|
return "Chocolatey $(choco --version)"
|
||||||
$chocoVersion = $Matches.Version
|
|
||||||
return "Chocolatey $chocoVersion"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-VcpkgVersion {
|
function Get-VcpkgVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user