mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-16 13:17:26 +00:00
Fix null argument issue
This commit is contained in:
parent
427eb4abfa
commit
2ab3c169e9
4 changed files with 24 additions and 12 deletions
|
|
@ -107,7 +107,7 @@ function Main {
|
|||
}
|
||||
$outFile = Join-Path $tempDir $item.Name
|
||||
Write-Host "Downloading $($item.Name)..."
|
||||
Start-Process -FilePath $aria2Exe -ArgumentList @(
|
||||
$argumentList = @(
|
||||
"--dir=`"$($outFile | Split-Path)`"",
|
||||
"--out=`"$(Split-Path -Leaf $outFile)`"",
|
||||
"--allow-overwrite=true",
|
||||
|
|
@ -115,9 +115,12 @@ function Main {
|
|||
"--max-connection-per-server=8",
|
||||
"--split=8",
|
||||
"--min-split-size=1M",
|
||||
"$regionalWorkaround",
|
||||
"`"$($item.Url)`""
|
||||
) -NoNewWindow -Wait
|
||||
)
|
||||
if (![string]::IsNullOrEmpty($regionalWorkaround)) {
|
||||
$argumentList += $regionalWorkaround
|
||||
}
|
||||
Start-Process -FilePath $aria2Exe -ArgumentList $argumentList -NoNewWindow -Wait
|
||||
}
|
||||
|
||||
# --- Install DirectX ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue