mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-16 17:51:28 +01:00
Update check-powershell.ps1 and list-aliases.ps1
This commit is contained in:
parent
0654d7730b
commit
aa593c5edc
@ -14,7 +14,9 @@
|
||||
try {
|
||||
$Version = $PSVersionTable.PSVersion
|
||||
$Edition = $PSVersionTable.PSEdition
|
||||
"✅ PowerShell $Version ($Edition edition)"
|
||||
$Modules = Get-Module
|
||||
$Aliases = Get-Alias
|
||||
"✅ PowerShell $Version ($Edition edition) with $($Modules.Count) modules and $($Aliases.Count) aliases"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -18,7 +18,7 @@
|
||||
#>
|
||||
|
||||
try {
|
||||
get-alias
|
||||
Get-Alias
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user