fix markdown output

This commit is contained in:
Aleksandr Chebotov
2020-09-25 12:41:45 +03:00
parent 72bd7db479
commit 1f73bc3e70

View File

@@ -6,8 +6,7 @@ function Get-OSName {
function Get-CPPVersions {
$cppVersions = apt list --installed 2>&1 | Where-Object { $_ -match "g\+\+-\d+"} | ForEach-Object {
$_ -match "now (?<version>\d+\.\d+\.\d+)-" | Out-Null
$Matches.version
& $_.Split("/")[0] --version | Select-Object -First 1 | Take-OutputPart -Part 3
} | Sort-Object {[Version]$_}
return "GNU C++ " + ($cppVersions -Join ", ")
}