summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-16 10:24:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-16 10:24:15 +0000
commit526f470c5f90a021ecfef417984854525f55583e (patch)
tree45ff955a9f8994e830e22003c48430b92089f4cd /scripts
parentb075688953d880ecd83c7a799af6a475b539b460 (diff)
downloadmtk-20170518-526f470c5f90a021ecfef417984854525f55583e.zip
mtk-20170518-526f470c5f90a021ecfef417984854525f55583e.tar.gz
mtk-20170518-526f470c5f90a021ecfef417984854525f55583e.tar.bz2
download.pl: fix openssl sha256 digest output
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48259
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 3b8b267..9d1fe47 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;