aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-10 16:08:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-10 16:08:25 +0000
commit607b012c34cb8a30c2a14f53ecba4b2d53e9a62a (patch)
tree650881686944f39bdd4a615fc67490816c727f45
parent481ba6b43d1c28b4c225cbd9df2b7ef1a9a4aa8d (diff)
downloadupstream-607b012c34cb8a30c2a14f53ecba4b2d53e9a62a.tar.gz
upstream-607b012c34cb8a30c2a14f53ecba4b2d53e9a62a.tar.bz2
upstream-607b012c34cb8a30c2a14f53ecba4b2d53e9a62a.zip
add workaround for freebsd
SVN-Revision: 5017
-rwxr-xr-xopenwrt/scripts/download.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/openwrt/scripts/download.pl b/openwrt/scripts/download.pl
index 009ed3b689..e7c7ee32e6 100755
--- a/openwrt/scripts/download.pl
+++ b/openwrt/scripts/download.pl
@@ -43,9 +43,10 @@ sub download
cleanup();
return;
}
+ $? = 0;
my $sum = `cat "$target/$filename.md5sum"`;
- $sum =~ /^(\w+)\s+/ or die "Could not generate md5sum\n";
+ $sum =~ /^(\w+)\s*/ or die "Could not generate md5sum\n";
$sum = $1;
if (($md5sum =~ /\w{32}/) and ($sum ne $md5sum)) {