major update to override Write-Output func
This commit is contained in:
@@ -11,11 +11,11 @@ If (IsAdmin) {
|
||||
|
||||
## If the path to wireguard.exe is found, update the app
|
||||
If ( -not [string]::IsNullOrEmpty($PATH) ) {
|
||||
LogMsg "Updating Wireguard"
|
||||
Write-Output "Updating Wireguard"
|
||||
Try { Start-Process $PATH -ArgumentList "/update" -Wait }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
LogMsg "Finished updating Wireguard"
|
||||
Write-Output "Finished updating Wireguard"
|
||||
}
|
||||
}
|
||||
|
||||
Else { LogMsg "You must be a local administrator to update Wireguard" }
|
||||
Else { Write-Output "You must be a local administrator to update Wireguard" }
|
||||
Reference in New Issue
Block a user