fix(kickstart.sh): prefer shasum over sha256sum (#12429)
Ilya Mashchenko committed
Mar 16, 2022 at 22:15 UTC
ae5498b8ecc12632ffee8208f3310651915f8200
1 file changed
+3
-3
packaging/installer/kickstart.sh
+3
-3
@@ -409,10 +409,10 @@ get_redirect() {
409
safe_sha256sum() {
410
# Within the context of the installer, we only use -c option that is common between the two commands
411
# We will have to reconsider if we start using non-common options
412
- if command -v sha256sum > /dev/null 2>&1; then
413
- sha256sum "$@"
414
- elif command -v shasum > /dev/null 2>&1; then
412
+ if command -v shasum > /dev/null 2>&1; then
413
shasum -a 256 "$@"
414
+ elif command -v sha256sum > /dev/null 2>&1; then
415
+ sha256sum "$@"
416
else
417
fatal "I could not find a suitable checksum binary to use" F0004
418
fi