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:
parent
51e71f970a
commit
96030c4917
2
kiss
2
kiss
|
@ -157,9 +157,9 @@ sh256() {
|
||||||
|
|
||||||
if [ ! -d "$1" ] && [ -e "$1" ]; then
|
if [ ! -d "$1" ] && [ -e "$1" ]; then
|
||||||
hash=$(
|
hash=$(
|
||||||
|
openssl dgst -sha256 -r "$1" ||
|
||||||
sha256sum "$1" ||
|
sha256sum "$1" ||
|
||||||
sha256 -r "$1" ||
|
sha256 -r "$1" ||
|
||||||
openssl dgst -sha256 -r "$1" ||
|
|
||||||
shasum -a 256 "$1" ||
|
shasum -a 256 "$1" ||
|
||||||
digest -a sha256 "$1"
|
digest -a sha256 "$1"
|
||||||
) 2>/dev/null || die "Failed to generate checksums for '$1'"
|
) 2>/dev/null || die "Failed to generate checksums for '$1'"
|
||||||
|
|
Loading…
Reference in New Issue