Author: nbd
Date: 2016-01-16 11:24:15 +0100 (Sat, 16 Jan 2016)
New Revision: 48259

Modified:
   trunk/scripts/download.pl
Log:
download.pl: fix openssl sha256 digest output

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/scripts/download.pl
===================================================================
--- trunk/scripts/download.pl   2016-01-16 09:14:03 UTC (rev 48258)
+++ trunk/scripts/download.pl   2016-01-16 10:24:15 UTC (rev 48259)
@@ -63,7 +63,7 @@
        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;
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to