diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-16 10:24:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-16 10:24:15 +0000 |
commit | 0d23a0fcf080fd0fdfed323d796dae18176b0b87 (patch) | |
tree | 7a7f0d13c180d5b7188b2f2a515e412767b2f08a | |
parent | 3e494e74c43290881de9e3be528331427aca85e8 (diff) | |
download | master-187ad058-0d23a0fcf080fd0fdfed323d796dae18176b0b87.tar.gz master-187ad058-0d23a0fcf080fd0fdfed323d796dae18176b0b87.tar.bz2 master-187ad058-0d23a0fcf080fd0fdfed323d796dae18176b0b87.zip |
download.pl: fix openssl sha256 digest output
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48259 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 3b8b267a42..9d1fe4755a 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -63,7 +63,7 @@ sub hash_cmd() { my $len = length($file_hash); my $cmd; - $len == 64 and return "openssl dgst -sha256"; + $len == 64 and return "openssl dgst -sha256 | sed -e 's,.*= ,,'"; $len == 32 and do { my $cmd = which("md5sum") || which("md5") || die 'no md5 checksum program found, please install md5 or md5sum'; chomp $cmd; |