Update list-automatic-variables.ps1

This commit is contained in:
Markus Fleschutz 2021-02-24 11:30:28 +01:00 committed by GitHub
parent a6cb72745d
commit 008d78a6ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,8 @@ function ListAutomaticVariables {
try {
$Vars = ListAutomaticVariables
$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
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"