From 58846c99b1fd6f736135b91e506ddfa2844a9bb6 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 25 Nov 2020 08:41:19 +0200 Subject: [PATCH] kiss: Possible fix for #204 --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index d684e6e..73e401b 100755 --- a/kiss +++ b/kiss @@ -113,7 +113,7 @@ sh256() { # All utilities must match 'sha256sum' output. # # Example: ' ' - [ -e "$1" ] || return 0 + [ -f "$1" ] || return 0 hash=$( sha256sum "$1" || @@ -121,7 +121,7 @@ sh256() { openssl dgst -sha256 -r "$1" || shasum -a 256 "$1" || digest -a sha256 "$1" - ) 2>/dev/null + ) printf '%s\n' "${hash%% *}" }