mirror of
https://github.com/actions/runner-images.git
synced 2026-01-09 03:57:44 +08:00
Merge pull request #1786 from vsafonkin/v-vlsafo/fix-pipx-version
[Ubuntu] Fix pipx version on software report
This commit is contained in:
@@ -249,5 +249,7 @@ function Get-AptPackages {
|
||||
|
||||
function Get-PipxVersion {
|
||||
$result = (Get-CommandResult "pipx --version").Output
|
||||
return "Pipx $result"
|
||||
$result -match "(?<version>\d+\.\d+\.\d+\.?\d*)" | Out-Null
|
||||
$pipxVersion = $Matches.Version
|
||||
return "Pipx $pipxVersion"
|
||||
}
|
||||
Reference in New Issue
Block a user