From 8bf8504e77df40e138dcd6f60492b296b33ea7cd Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Mon, 14 Dec 2020 09:29:13 +0300 Subject: [PATCH] bash version output (#2238) --- .../linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 | 5 +++++ .../scripts/SoftwareReport/SoftwareReport.Generator.ps1 | 1 + 2 files changed, 6 insertions(+) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 index a7136a970..debf9d8c3 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -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 { diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index 484307367..c36abad40 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -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),