kiss: default to openssl for sha256sums

This brings a nice little performance increase.

The time required to checksum Firefox's sources
is more than halved on my machine.
This commit is contained in:
Dylan Araps 2021-07-12 11:44:30 +03:00
parent 51e71f970a
commit 96030c4917
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 1 additions and 1 deletions

2
kiss
View File

@ -157,9 +157,9 @@ sh256() {
if [ ! -d "$1" ] && [ -e "$1" ]; then
hash=$(
openssl dgst -sha256 -r "$1" ||
sha256sum "$1" ||
sha256 -r "$1" ||
openssl dgst -sha256 -r "$1" ||
shasum -a 256 "$1" ||
digest -a sha256 "$1"
) 2>/dev/null || die "Failed to generate checksums for '$1'"