major change to override Write-Error func
This commit is contained in:
@@ -13,7 +13,7 @@ If (IsAdmin) {
|
||||
If ( -not [string]::IsNullOrEmpty($PATH) ) {
|
||||
Write-Output "Updating Wireguard"
|
||||
Try { Start-Process $PATH -ArgumentList "/update" -Wait }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
Write-Output "Finished updating Wireguard"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user