major change to override Write-Error func
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ If ( IsAdmin )
|
||||
{
|
||||
Write-Output "Deleting desktop shortcut: ${Shortcut}"
|
||||
Try { Remove-Item $Shortcut -Force }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
}
|
||||
}
|
||||
Else { Write-Output "Must be an administrator to install OpenVPN" }
|
||||
Reference in New Issue
Block a user