bash version output (#2238)

This commit is contained in:
Aleksandr Chebotov
2020-12-14 09:29:13 +03:00
committed by GitHub
parent 80c5d4a561
commit 8bf8504e77
2 changed files with 6 additions and 0 deletions

View File

@@ -4,6 +4,11 @@ function Get-OSName {
lsb_release -ds
}
function Get-BashVersion {
$version = bash -c 'echo ${BASH_VERSION}'
return "Bash $version"
}
function Get-CPPVersions {
$result = Get-CommandResult "apt list --installed" -Multiline
$cppVersions = $result.Output | Where-Object { $_ -match "g\+\+-\d+"} | ForEach-Object {

View File

@@ -32,6 +32,7 @@ $markdown += New-MDHeader "Installed Software" -Level 2
$markdown += New-MDHeader "Language and Runtime" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-BashVersion),
(Get-CPPVersions),
(Get-FortranVersions),
(Get-ClangVersions),