kiss: Fix openssl sha256sum fallback

This commit is contained in:
Dylan Araps 2020-05-07 14:42:27 +03:00
parent 8a51e76de9
commit c72a6c34db
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 0 deletions

2
kiss
View File

@ -197,6 +197,8 @@ sha256sum_sh() {
#
# This _only_ runs when the 'sha256sum' command is _not_ available
# in the host machine. It's a fallback.
[ -f "$1" ] || return
IFS='= ' read -r _ _sum <<EOF
$(openssl dgst -sha256 "$1")
EOF