From: Felix Fietkau Date: Sat, 16 Jan 2016 10:24:15 +0000 (+0000) Subject: download.pl: fix openssl sha256 digest output X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=659943b71684048d979c5fe2e20ca4c2e2f72fe9;p=openwrt%2Fsvn-archive%2Farchive.git download.pl: fix openssl sha256 digest output Signed-off-by: Felix Fietkau SVN-Revision: 48259 --- 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;