kiss: Fix openssl sha256sum fallback
This commit is contained in:
parent
8a51e76de9
commit
c72a6c34db
2
kiss
2
kiss
|
@ -197,6 +197,8 @@ sha256sum_sh() {
|
||||||
#
|
#
|
||||||
# This _only_ runs when the 'sha256sum' command is _not_ available
|
# This _only_ runs when the 'sha256sum' command is _not_ available
|
||||||
# in the host machine. It's a fallback.
|
# in the host machine. It's a fallback.
|
||||||
|
[ -f "$1" ] || return
|
||||||
|
|
||||||
IFS='= ' read -r _ _sum <<EOF
|
IFS='= ' read -r _ _sum <<EOF
|
||||||
$(openssl dgst -sha256 "$1")
|
$(openssl dgst -sha256 "$1")
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue