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 | 5742c023503bc5ef483d72fe95cb4ba990a5d0fe (patch) | |
tree | 20c2035f05adbdbe5fd9aea98b92ff67872a1a0a | |
parent | 054e44b52021ea8b5dcdd7de23c10cfc8e14c82f (diff) | |
download | master-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
-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; } |