mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-16 05:07:39 +00:00
Retry when 80092013 occurs
This commit is contained in:
parent
131b87bc17
commit
9879277784
4 changed files with 24 additions and 4 deletions
7
64
7
64
|
|
@ -131,7 +131,12 @@ function Main {
|
|||
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
||||
$argumentList += $regionalWorkaround
|
||||
}
|
||||
Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -Wait
|
||||
$proc = Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -Wait
|
||||
if ($proc.ExitCode -ne 0) {
|
||||
Write-Warning "aria2c failed (exit code $($proc.ExitCode)). Retrying with --check-certificate=false..."
|
||||
$argsRetry = $argumentList + "--check-certificate=false"
|
||||
Start-Process -FilePath $aria2Exe -ArgumentList $argsRetry -NoNewWindow -Wait
|
||||
}
|
||||
}
|
||||
|
||||
# --- Check Signature ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue