From 1f17788d8e844c9d7b3b7210d274ca7d5c104ca5 Mon Sep 17 00:00:00 2001 From: Wayne Brantley Date: Tue, 15 Nov 2016 11:00:25 -0500 Subject: [PATCH] use openssl instead of shasum shasum is not on many platforms (like centos), use openssl instead. --- scripts/get | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get b/scripts/get index 76a247a6b..4038fdd2e 100755 --- a/scripts/get +++ b/scripts/get @@ -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."