From f6c074642c7164028651ba54503df54f606e16eb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 27 Feb 2016 16:20:06 +0000 Subject: [PATCH] scripts/download.pl: fix sha256 hash command (#21931) Signed-off-by: Felix Fietkau SVN-Revision: 48809 --- scripts/download.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2