aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
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
commit5742c023503bc5ef483d72fe95cb4ba990a5d0fe (patch)
tree20c2035f05adbdbe5fd9aea98b92ff67872a1a0a /scripts
parent054e44b52021ea8b5dcdd7de23c10cfc8e14c82f (diff)
downloadmaster-187ad058-5742c023503bc5ef483d72fe95cb4ba990a5d0fe.tar.gz
master-187ad058-5742c023503bc5ef483d72fe95cb4ba990a5d0fe.tar.bz2
master-187ad058-5742c023503bc5ef483d72fe95cb4ba990a5d0fe.zip
scripts/download.pl: fix sha256 hash command (#21931)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48809 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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;
}