From 08a92b23d1defbb03a3f6580f3ce9b3dcb935c76 Mon Sep 17 00:00:00 2001 From: Michal Zerola Date: Thu, 15 Mar 2018 09:05:13 +0100 Subject: [PATCH] Fixed referencing the wrong env variable if SHA sum doesn't match. --- scripts/get | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/get b/scripts/get index 1c1e617e871..6654fd2267f 100755 --- a/scripts/get +++ b/scripts/get @@ -49,11 +49,11 @@ initOS() { # runs the given command as root (detects if we are root already) runAsRoot() { local CMD="$*" - + if [ $EUID -ne 0 ]; then CMD="sudo $CMD" fi - + $CMD } @@ -134,7 +134,7 @@ installFile() { 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." + echo "SHA sum of ${HELM_TMP_FILE} does not match. Aborting." exit 1 fi