diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-02-27 16:20:06 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-02-27 16:20:06 +0000 |
commit | 9a945382724f61880fcb7df9e6cb2db4be645598 (patch) | |
tree | 55d44733c359b1596cc09f6e06fcaec24f6d3218 | |
parent | ce9dc109a4f1e25373428a5dee59bc2d3082e1dc (diff) | |
download | upstream-9a945382724f61880fcb7df9e6cb2db4be645598.tar.gz upstream-9a945382724f61880fcb7df9e6cb2db4be645598.tar.bz2 upstream-9a945382724f61880fcb7df9e6cb2db4be645598.zip |
scripts/download.pl: fix sha256 hash command (#21931)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48809
-rwxr-xr-x | scripts/download.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |