From 46ce97c1b0a6fc0562a374e960a0d9570e13ca9f Mon Sep 17 00:00:00 2001 From: Justin Scott Date: Fri, 25 Aug 2017 12:43:44 -0700 Subject: [PATCH] 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) --- scripts/get | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get b/scripts/get index 8b4a83a2e..4ebc892af 100755 --- a/scripts/get +++ b/scripts/get @@ -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."