aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/download.pl
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-02-27 16:20:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-02-27 16:20:06 +0000
commit9a945382724f61880fcb7df9e6cb2db4be645598 (patch)
tree55d44733c359b1596cc09f6e06fcaec24f6d3218 /scripts/download.pl
parentce9dc109a4f1e25373428a5dee59bc2d3082e1dc (diff)
downloadupstream-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
Diffstat (limited to 'scripts/download.pl')
-rwxr-xr-xscripts/download.pl2
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;
}