From: Felix Fietkau Date: Tue, 10 Oct 2006 16:08:25 +0000 (+0000) Subject: add workaround for freebsd X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=80b24172102f60af767454b21711c4086c85e94e;p=15.05%2Fopenwrt.git add workaround for freebsd git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5017 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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)) {