add condition

This commit is contained in:
Mikhail Timofeev
2020-07-14 00:09:57 +03:00
parent d7e2e9515a
commit caea67fbc6

View File

@@ -22,10 +22,13 @@ $markdown += New-MDList -Style Unordered -Lines @(
"Image Version: $env:ImageVersion"
)
if ($OSName -match "Microsoft Windows Server 2019 Datacenter")
{
$markdown += New-MDHeader "Enabled windows optional features" -Level 2
$markdown += New-MDList -Style Unordered -Lines @(
"Windows Subsystem for Linux"
)
}
$markdown += New-MDHeader "Installed Software" -Level 2
$markdown += New-MDHeader "Language and Runtime" -Level 3