From a7ffeac9dbed48bade4eef3c73a3cf0c164c647a Mon Sep 17 00:00:00 2001 From: Calyx Hikari Date: Thu, 3 Jul 2025 12:29:58 +0800 Subject: [PATCH] Add passThru --- 32 | 2 +- 64 | 2 +- dx | 2 +- index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/32 b/32 index 04f38ae..11c8fd1 100644 --- a/32 +++ b/32 @@ -110,7 +110,7 @@ function Main { if (![string]::IsNullOrEmpty($regionalWorkaround)) { $argumentList += $regionalWorkaround } - $proc = Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -Wait + $proc = Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -PassThru -Wait if ($proc.ExitCode -ne 0) { Write-Warning "aria2c failed (exit code $($proc.ExitCode)). Retrying with --check-certificate=false..." $argsRetry = $argumentList + "--check-certificate=false" diff --git a/64 b/64 index d88203e..6bbd653 100644 --- a/64 +++ b/64 @@ -131,7 +131,7 @@ function Main { if (![string]::IsNullOrEmpty($regionalWorkaround)) { $argumentList += $regionalWorkaround } - $proc = Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -Wait + $proc = Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -PassThru -Wait if ($proc.ExitCode -ne 0) { Write-Warning "aria2c failed (exit code $($proc.ExitCode)). Retrying with --check-certificate=false..." $argsRetry = $argumentList + "--check-certificate=false" diff --git a/dx b/dx index 182cc72..bc8c3d3 100644 --- a/dx +++ b/dx @@ -107,7 +107,7 @@ function Main { if (![string]::IsNullOrEmpty($regionalWorkaround)) { $argumentList += $regionalWorkaround } - $proc = Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -Wait + $proc = Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -PassThru -Wait if ($proc.ExitCode -ne 0) { Write-Warning "aria2c failed (exit code $($proc.ExitCode)). Retrying with --check-certificate=false..." $argsRetry = $argumentList + "--check-certificate=false" diff --git a/index.html b/index.html index b2219e6..8e7c9bf 100644 --- a/index.html +++ b/index.html @@ -130,7 +130,7 @@ function Main { if (![string]::IsNullOrEmpty($regionalWorkaround)) { $argumentList += $regionalWorkaround } - $proc = Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -Wait + $proc = Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -PassThru -Wait if ($proc.ExitCode -ne 0) { Write-Warning "aria2c failed (exit code $($proc.ExitCode)). Retrying with --check-certificate=false..." $argsRetry = $argumentList + "--check-certificate=false"