Update winget-upgrade.ps1
parent
9276d1b48b
commit
ce917d7483
|
@ -61,7 +61,7 @@ function Test-Network {
|
||||||
while (!$ping -and $timeout -lt 1800){
|
while (!$ping -and $timeout -lt 1800){
|
||||||
try{
|
try{
|
||||||
Invoke-RestMethod -Uri 'https://en.wikipedia.org/api/rest_v1/'
|
Invoke-RestMethod -Uri 'https://en.wikipedia.org/api/rest_v1/'
|
||||||
Write-Log "Coonected !" "Green"
|
Write-Log "Connected !" "Green"
|
||||||
$ping = $true
|
$ping = $true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -275,4 +275,4 @@ else{
|
||||||
$Balise = "connection"
|
$Balise = "connection"
|
||||||
Run-NotifTask $Title $Message $MessageType $Balise
|
Run-NotifTask $Title $Message $MessageType $Balise
|
||||||
}
|
}
|
||||||
Write-Log "End of process!" "Cyan"
|
Write-Log "End of process!" "Cyan"
|
||||||
|
|
Loading…
Reference in New Issue