Update check-powershell.ps1

This commit is contained in:
Markus Fleschutz 2023-01-06 10:22:09 +01:00
parent b7e36142bc
commit b3c91619f3

View File

@ -17,10 +17,10 @@ try {
$NumModules = (Get-Module).Count
$NumAliases = (Get-Alias).Count
if ($IsLinux) {
"✅ PowerShell $Version ($Edition edition) with $NumModules modules and $NumAliases aliases"
"✅ PowerShell $Version ($Edition edition, $NumModules modules, $NumAliases aliases)"
} else {
$NumCmdlets = (Get-Command -Command-Type cmdlet).Count
"✅ PowerShell $Version ($Edition edition) with $NumModules modules, $NumCmdlets cmdlets and $NumAliases aliases"
"✅ PowerShell $Version ($Edition edition, $NumModules modules, $NumCmdlets cmdlets, $NumAliases aliases)"
}
exit 0 # success
} catch {