From: Felix Fietkau Date: Sat, 27 Feb 2016 16:20:06 +0000 (+0000) Subject: scripts/download.pl: fix sha256 hash command (#21931) X-Git-Tag: v19.07.0-rc1~10995 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9a945382724f61880fcb7df9e6cb2db4be645598;p=openwrt%2Fstaging%2Fhauke.git scripts/download.pl: fix sha256 hash command (#21931) Signed-off-by: Felix Fietkau SVN-Revision: 48809 --- 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; }