Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed May 7, 2024
1 parent e858671 commit 1c6b766
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion msupdate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,13 @@ if (-not (Test-Path -Path ".\bin\NSudoLC.exe")) {

# get wupatch
if ($null -ne $UUPScript) {
Invoke-WebRequest -Uri $UUPScript -OutFile ".\temp\UUPScript.txt"
try {
Invoke-WebRequest -Uri $UUPScript -OutFile ".\temp\UUPScript.txt"
}
catch {
Start-Sleep -Seconds 5
Invoke-WebRequest -Uri $UUPScript -OutFile ".\temp\UUPScript.txt"
}
.\bin\aria2c.exe --check-certificate=false -x16 -s16 -j5 -c -R -d ".\patch" -i ".\temp\UUPScript.txt"
if (!$?) {Write-Error "UUPScript Download Failed!"}
} elseif ($null -ne $WUScript) {
Expand Down

0 comments on commit 1c6b766

Please sign in to comment.