mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 21:20:51 +01:00
Update list-automatic-variables.ps1
This commit is contained in:
parent
a6cb72745d
commit
008d78a6ec
@ -65,7 +65,8 @@ function ListAutomaticVariables {
|
|||||||
try {
|
try {
|
||||||
$Vars = ListAutomaticVariables
|
$Vars = ListAutomaticVariables
|
||||||
$Vars | format-table -property Variable,Content
|
$Vars | format-table -property Variable,Content
|
||||||
write-output "($($Vars.Count) automatic variables total)"
|
|
||||||
|
write-host -foregroundColor green "OK - $($Vars.Count) automatic variables total"
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user