feat(helm): use openssl sha1 command

Currently the bash script that installs Helm is hard-coded to use
openssl sha command but some distros like Debian 9 only have sha1.
Since the popular current distros have sha1 we can switch to that.

Closes(#2859)
pull/2860/head
Justin Scott 7 years ago
parent 1dbbace831
commit 46ce97c1b0

@ -130,7 +130,7 @@ downloadFile() {
# installs it.
installFile() {
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})
if [ "$sum" != "$expected_sum" ]; then
echo "SHA sum of $HELM_TMP does not match. Aborting."

Loading…
Cancel
Save