mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-16 21:27: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
32
7
32
|
|
@ -110,7 +110,12 @@ function Main {
|
||||||
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
||||||
$argumentList += $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 ---
|
# --- Check Signature ---
|
||||||
|
|
|
||||||
7
64
7
64
|
|
@ -131,7 +131,12 @@ function Main {
|
||||||
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
||||||
$argumentList += $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 ---
|
# --- Check Signature ---
|
||||||
|
|
|
||||||
7
dx
7
dx
|
|
@ -107,7 +107,12 @@ function Main {
|
||||||
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
||||||
$argumentList += $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 ---
|
# --- Check Signature ---
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,12 @@ function Main {
|
||||||
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
||||||
$argumentList += $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 ---
|
# --- Check Signature ---
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue