From b2b55e5cdb072f783d1c3635d4f68ce3a1283833 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 13 May 2020 10:09:55 +0300 Subject: [PATCH] sha: Fix issue with specific implementation and '*' --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 527795f..6b31dfb 100755 --- a/kiss +++ b/kiss @@ -118,14 +118,14 @@ sh256() { # Example: ' ' [ -e "$1" ] || return 0 - read -r hash file <<-EOF + read -r hash _ <<-EOF $(sha256sum "$1" || sha256 -r "$1" || openssl dgst -sha256 -r "$1" || shasum -a 256 "$1") EOF - printf '%s %s\n' "$hash" "${file#\*}" + printf '%s %s\n' "$hash" "$1" } 2>/dev/null pkg_lint() {