[Ubuntu] fix ghcup version in software report (#6919)

This commit is contained in:
Mikhail Koliada
2023-01-15 20:11:33 +01:00
committed by GitHub
parent b26e3736c1
commit 7d596c7216

View File

@@ -241,7 +241,7 @@ function Get-GHCVersion {
}
function Get-GHCupVersion {
$(ghcup --version) -match "version v(?<version>\d+(\.\d+){2,})" | Out-Null
$(ghcup --version) -match "version (?<version>\d+(\.\d+){2,})" | Out-Null
return $Matches.version
}