mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 14:07:20 +02:00
Improve the done output
This commit is contained in:
@ -23,7 +23,8 @@ try {
|
||||
& "$PSScriptRoot/switch-shelly1.ps1" $IPaddress off 0
|
||||
start-sleep -s 60
|
||||
}
|
||||
write-host -foregroundColor green "Done."
|
||||
|
||||
"✔️ Done."
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user