diff --git a/scripts/download.pl b/scripts/download.pl index 50dca2335ea..51a816cff44 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -93,6 +93,7 @@ sub download_cmd { } if ($have_aria2c) { + @mirrors=(); return join(" ", "touch /dev/shm/${rfn}_spp;", qw(aria2c --stderr -c -x2 -s10 -j10 -k1M), $url, $additional_mirrors, $check_certificate ? () : '--check-certificate=false', @@ -321,7 +322,6 @@ while (!-f "$target/$filename") { if (!-f "$target/$filename" && $url_filename ne $filename) { download($mirror, $filename, @mirrors); } - @mirrors=(); } $SIG{INT} = \&cleanup;