Update winget-upgrade.ps1
parent
cb16a99146
commit
bcafb585e3
|
@ -60,7 +60,7 @@ function Test-Network {
|
|||
Write-Log "Checking internet connection..." "Yellow"
|
||||
while (!$ping -and $timeout -lt 1800){
|
||||
try{
|
||||
Invoke-RestMethod -Uri 'https://en.wikipedia.org/api/rest_v1/'
|
||||
Invoke-RestMethod -Uri "https://ifconfig.me/"
|
||||
Write-Log "Connected !" "Green"
|
||||
$ping = $true
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue