X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Fdownload.pl;h=8eb66f035361aeeaf32179a7a5d70f31fa3af86e;hb=98910471a788906e794d00793e82d089cad58d1a;hp=882e907d6499a5ee03e40617edf86d55d92385a2;hpb=ca5ea6c2becc1ce5aa540f5099b82758dc3a802c;p=lede-git%2F.git diff --git a/scripts/download.pl b/scripts/download.pl index 882e907d64..8eb66f0353 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -37,7 +37,8 @@ sub download my $mirror = shift; my $options = $ENV{WGET_OPTIONS}; $options or $options = ""; - + + $mirror =~ s/\/$//; open WGET, "wget -t1 --timeout=20 $options -O- \"$mirror/$filename\" |" or die "Cannot launch wget.\n"; open MD5SUM, "| $md5cmd > \"$target/$filename.md5sum\"" or die "Cannot launch md5sum.\n"; open OUTPUT, "> $target/$filename.dl" or die "Cannot create file $target/$filename.dl: $!\n";