major update to override Write-Output func

This commit is contained in:
2023-10-05 13:11:38 -04:00
parent 31a06a9206
commit bbb4884818
52 changed files with 377 additions and 378 deletions
+3 -3
View File
@@ -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" }