aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/download.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/download.pl')
-rwxr-xr-xscripts/download.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/download.pl b/scripts/download.pl
index 90d50a8862..ab72b6bdd3 100755
--- a/scripts/download.pl
+++ b/scripts/download.pl
@@ -246,12 +246,11 @@ push @mirrors, 'http://sources.lede-project.org';
push @mirrors, 'http://mirror2.openwrt.org/sources';
push @mirrors, 'http://downloads.openwrt.org/sources';
-while (!$ok) {
+while (!-f "$target/$filename") {
my $mirror = shift @mirrors;
$mirror or die "No more mirrors to try - giving up.\n";
download($mirror);
- -f "$target/$filename" and $ok = 1;
}
$SIG{INT} = \&cleanup;