From: nbd Date: Sat, 27 Feb 2016 16:20:06 +0000 (+0000) Subject: scripts/download.pl: fix sha256 hash command (#21931) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=90d420f8b660ce41d4c705102d6f0f3b647eeb7c;p=openwrt.git scripts/download.pl: fix sha256 hash command (#21931) Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48809 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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; }