mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-18 15:56:47 +00:00
Fix pipx version
This commit is contained in:
@@ -249,5 +249,7 @@ function Get-AptPackages {
|
|||||||
|
|
||||||
function Get-PipxVersion {
|
function Get-PipxVersion {
|
||||||
$result = (Get-CommandResult "pipx --version").Output
|
$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