mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +00:00
fix markdown output
This commit is contained in:
@@ -6,8 +6,7 @@ function Get-OSName {
|
|||||||
|
|
||||||
function Get-CPPVersions {
|
function Get-CPPVersions {
|
||||||
$cppVersions = apt list --installed 2>&1 | Where-Object { $_ -match "g\+\+-\d+"} | ForEach-Object {
|
$cppVersions = apt list --installed 2>&1 | Where-Object { $_ -match "g\+\+-\d+"} | ForEach-Object {
|
||||||
$_ -match "now (?<version>\d+\.\d+\.\d+)-" | Out-Null
|
& $_.Split("/")[0] --version | Select-Object -First 1 | Take-OutputPart -Part 3
|
||||||
$Matches.version
|
|
||||||
} | Sort-Object {[Version]$_}
|
} | Sort-Object {[Version]$_}
|
||||||
return "GNU C++ " + ($cppVersions -Join ", ")
|
return "GNU C++ " + ($cppVersions -Join ", ")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user