aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-12-06 19:29:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-12-06 19:29:11 +0000
commit5272c784c176e2bc9ab6fc27d8d88f46ecfeead1 (patch)
tree9dc222d32fc3b7235a0e63a05b3b9846abd2afd0 /scripts
parentbce2c36f43888e17e8ea1771296eb76a29d739c3 (diff)
downloadmaster-187ad058-5272c784c176e2bc9ab6fc27d8d88f46ecfeead1.tar.gz
master-187ad058-5272c784c176e2bc9ab6fc27d8d88f46ecfeead1.tar.bz2
master-187ad058-5272c784c176e2bc9ab6fc27d8d88f46ecfeead1.zip
strip trailing / from download urls
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5701 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/download.pl3
1 files changed, 2 insertions, 1 deletions
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";