mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
accommodate systems that use sha256sum (#7370)
* accommodate systems that use sha256sum * cleaner use of checkSum * Merge branch 'master' into shell_script_support4_sha256sum * Merge branch 'master' into shell_script_support4_sha256sum
This commit is contained in:
11
prysm.sh
11
prysm.sh
@@ -119,10 +119,13 @@ function verify() {
|
||||
if [[ $skip == 1 ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
checkSum="shasum -a 256"
|
||||
hash shasum 2>/dev/null || {
|
||||
echo >&2 "shasum is not available. Either install it or run with PRYSM_ALLOW_UNVERIFIED_BINARIES=1."
|
||||
exit 1
|
||||
checkSum="sha256sum"
|
||||
hash sha256sum 2>/dev/null || {
|
||||
echo >&2 "SHA checksum utility not available. Either install one (shasum or sha256sum) or run with PRYSM_ALLOW_UNVERIFIED_BINARIES=1."
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
hash gpg 2>/dev/null || {
|
||||
echo >&2 "gpg is not available. Either install it or run with PRYSM_ALLOW_UNVERIFIED_BINARIES=1."
|
||||
@@ -134,7 +137,7 @@ function verify() {
|
||||
gpg --list-keys $PRYLABS_SIGNING_KEY >/dev/null 2>&1 || curl --silent https://prysmaticlabs.com/releases/pgp_keys.asc | gpg --import
|
||||
(
|
||||
cd $wrapper_dir
|
||||
shasum -a 256 -c "${file}.sha256" || failed_verification
|
||||
$checkSum -c "${file}.sha256" || failed_verification
|
||||
)
|
||||
(
|
||||
cd $wrapper_dir
|
||||
|
||||
Reference in New Issue
Block a user