bash version output (#2241)

This commit is contained in:
Aleksandr Chebotov
2020-12-14 09:24:20 +03:00
committed by GitHub
parent 911f1685c4
commit 034cf97599
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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),