X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=scripts%2Fdownload.pl;h=20f38f17e6db556ad6739c16fdd67ce084f4675d;hb=9a945382724f61880fcb7df9e6cb2db4be645598;hp=25c73fbeb522ebaecbdee77c913a968e0af8d429;hpb=ce9dc109a4f1e25373428a5dee59bc2d3082e1dc;p=openwrt%2Fstaging%2Fnoltari.git diff --git a/scripts/download.pl b/scripts/download.pl index 25c73fbeb5..20f38f17e6 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -118,7 +118,7 @@ sub download copy($link, "$target/$filename.dl"); $hash_cmd and do { - if (system("$hash_cmd '$target/$filename.dl' > '$target/$filename.hash'")) { + if (system("cat '$target/$filename.dl' | $hash_cmd > '$target/$filename.hash'")) { print("Failed to generate hash for $filename\n"); return; }