diff --git a/images/macos/software-report/SoftwareReport.Common.psm1 b/images/macos/software-report/SoftwareReport.Common.psm1 index 2145290a..0f6aba49 100644 --- a/images/macos/software-report/SoftwareReport.Common.psm1 +++ b/images/macos/software-report/SoftwareReport.Common.psm1 @@ -1,5 +1,10 @@ Import-Module "$PSScriptRoot/../helpers/SoftwareReport.Helpers.psm1" -DisableNameChecking +function Get-BashVersion { + $version = bash -c 'echo ${BASH_VERSION}' + return "Bash $version" +} + function Get-DotnetVersionList { $sdkRawList = Run-Command "dotnet --list-sdks" $sdkVersionList = $sdkRawList | ForEach-Object { Take-Part $_ -Part 0 } diff --git a/images/macos/software-report/SoftwareReport.Generator.ps1 b/images/macos/software-report/SoftwareReport.Generator.ps1 index 2b867686..9695971a 100644 --- a/images/macos/software-report/SoftwareReport.Generator.ps1 +++ b/images/macos/software-report/SoftwareReport.Generator.ps1 @@ -54,6 +54,7 @@ if ($os.IsLessThanBigSur) { } $markdown += New-MDList -Style Unordered -Lines @( + (Get-BashVersion), "Node.js ${nodejsVersion}" "NVM ${nvmVersion}" "NVM - Cached node versions: ${nvmCachedVersions}"