From 034cf975995ac7bf252ff50026d54307b365ebd6 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Mon, 14 Dec 2020 09:24:20 +0300 Subject: [PATCH] bash version output (#2241) --- images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 | 5 +++++ .../win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 | 1 + 2 files changed, 6 insertions(+) diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 0a1e69997..1a3d31914 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -8,6 +8,11 @@ function Get-OSVersion { return "OS Version: $OSVersion Build $OSBuild" } +function Get-BashVersion { + $version = bash -c 'echo ${BASH_VERSION}' + return "Bash $version" +} + function Get-JavaVersionsList { param( [string] $DefaultVersion diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index 4f2a57905..2d20da763 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -32,6 +32,7 @@ $markdown += New-MDHeader "Language and Runtime" -Level 3 $markdown += New-MDList -Lines (Get-JavaVersionsList -DefaultVersion "1.8.0") -Style Unordered -NoNewLine $markdown += New-MDList -Style Unordered -Lines @( + (Get-BashVersion), (Get-PythonVersion), (Get-RubyVersion), (Get-GoVersion),