From 86a9a13757357a5b480897f727f31c2217d44996 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 10 Oct 2006 16:17:16 +0000 Subject: real fix for download.pl git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5018 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/download.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/download.pl b/scripts/download.pl index e7c7ee32e..f636cca7e 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -19,8 +19,9 @@ my $ok; @ARGV > 0 or die "Syntax: $0 [ ...]\n"; my $md5cmd = `which md5sum`; -$md5cmd =~ /not found/ and $md5cmd = `which md5`; -$md5cmd =~ /not found/ and die 'no md5 checksum program found, please install md5 or md5sum'; +$md5cmd or $md5cmd = `which md5`; +$md5cmd or die 'no md5 checksum program found, please install md5 or md5sum'; +chomp $md5cmd; sub download { @@ -43,7 +44,6 @@ sub download cleanup(); return; } - $? = 0; my $sum = `cat "$target/$filename.md5sum"`; $sum =~ /^(\w+)\s*/ or die "Could not generate md5sum\n"; -- cgit v1.2.3