use openssl instead of shasum

shasum is not on many platforms (like centos), use openssl instead.
pull/1553/head
Wayne Brantley 9 years ago committed by GitHub
parent 915769b311
commit 1f17788d8e

@ -95,7 +95,7 @@ downloadFile() {
# installs it.
installFile() {
HELM_TMP="/tmp/$PROJECT_NAME"
local sum=$(shasum -a 256 ${HELM_TMP_FILE} | awk '{print $1}')
local sum=$(openssl sha -sha256 ${HELM_TMP_FILE} | awk '{print $2}')
local expected_sum=$(cat ${HELM_SUM_FILE})
if [ "$sum" != "$expected_sum" ]; then
echo "SHA sum of $HELM_TMP does not match. Aborting."

Loading…
Cancel
Save