summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-10 16:08:25 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-10 16:08:25 +0000
commit65cfd58a27b7f3e348bb0c2cd54a38909f68880b (patch)
treed52b7821badec008b33c53ad6659465bfe3b3de9
parent32f133780b0d7a75630e1ba4b37d78c8787d26ad (diff)
add workaround for freebsd
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5017 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xscripts/download.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/download.pl b/scripts/download.pl
index 009ed3b689..e7c7ee32e6 100755
--- a/scripts/download.pl
+++ b/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)) {