forked from kiss-community/kiss
sha: Fix issue with specific implementation and '*'
This commit is contained in:
parent
f1b7fd7fd8
commit
b2b55e5cdb
4
kiss
4
kiss
@ -118,14 +118,14 @@ sh256() {
|
||||
# Example: '<checksum> <file>'
|
||||
[ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user