diff --git a/dev/create-release/release-build.sh b/dev/create-release/release-build.sh index a65d02289c0f0..78fd06ba2be26 100755 --- a/dev/create-release/release-build.sh +++ b/dev/create-release/release-build.sh @@ -283,9 +283,7 @@ if [[ "$1" == "package" ]]; then echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour \ --output $R_DIST_NAME.asc \ --detach-sig $R_DIST_NAME - echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \ - SHA512 $R_DIST_NAME > \ - $R_DIST_NAME.sha512 + shasum -a 512 $R_DIST_NAME > $R_DIST_NAME.sha512 fi if [[ -n $PIP_FLAG ]]; then @@ -296,9 +294,7 @@ if [[ "$1" == "package" ]]; then echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour \ --output $PYTHON_DIST_NAME.asc \ --detach-sig $PYTHON_DIST_NAME - echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \ - SHA512 $PYTHON_DIST_NAME > \ - $PYTHON_DIST_NAME.sha512 + shasum -a 512 $PYTHON_DIST_NAME > $PYTHON_DIST_NAME.sha512 fi echo "Copying and signing regular binary distribution" @@ -306,9 +302,7 @@ if [[ "$1" == "package" ]]; then echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour \ --output spark-$SPARK_VERSION-bin-$NAME.tgz.asc \ --detach-sig spark-$SPARK_VERSION-bin-$NAME.tgz - echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \ - SHA512 spark-$SPARK_VERSION-bin-$NAME.tgz > \ - spark-$SPARK_VERSION-bin-$NAME.tgz.sha512 + shasum -a 512 spark-$SPARK_VERSION-bin-$NAME.tgz > spark-$SPARK_VERSION-bin-$NAME.tgz.sha512 } # List of binary packages built. Populates two associative arrays, where the key is the "name" of