commit
fa251e5e43
|
@ -10,7 +10,7 @@ function Test-Network {
|
||||||
While ($timeout -lt 1800) {
|
While ($timeout -lt 1800) {
|
||||||
|
|
||||||
$URLtoTest = "https://raw.githubusercontent.com/Romanitho/Winget-AutoUpdate/main/LICENSE"
|
$URLtoTest = "https://raw.githubusercontent.com/Romanitho/Winget-AutoUpdate/main/LICENSE"
|
||||||
$URLcontent = ((Invoke-WebRequest -URI $URLtoTest).content)
|
$URLcontent = ((Invoke-WebRequest -URI $URLtoTest -UseBasicParsing).content)
|
||||||
|
|
||||||
if ($URLcontent -like "*MIT License*") {
|
if ($URLcontent -like "*MIT License*") {
|
||||||
|
|
||||||
|
@ -73,4 +73,4 @@ function Test-Network {
|
||||||
Start-NotifTask $Title $Message $MessageType $Balise
|
Start-NotifTask $Title $Message $MessageType $Balise
|
||||||
return $false
|
return $false
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue