Merge pull request #2860 from jascott1/i2443-openssl

feat(helm):  use openssl sha1 command in Helm get script
pull/2889/head
Justin Scott 7 years ago committed by GitHub
commit bf426afd3c

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

Loading…
Cancel
Save