X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/32f133780b0d7a75630e1ba4b37d78c8787d26ad..65cfd58a27b7f3e348bb0c2cd54a38909f68880b:/scripts/download.pl diff --git a/scripts/download.pl b/scripts/download.pl index 009ed3b68..e7c7ee32e 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)) {