Unverified Commit ff63cde9 authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #3686 from zerola/fix_get_script

Fixed referencing the wrong env variable if SHA sum doesn't match.
parents b335bfda 08a92b23
...@@ -49,11 +49,11 @@ initOS() { ...@@ -49,11 +49,11 @@ initOS() {
# runs the given command as root (detects if we are root already) # runs the given command as root (detects if we are root already)
runAsRoot() { runAsRoot() {
local CMD="$*" local CMD="$*"
if [ $EUID -ne 0 ]; then if [ $EUID -ne 0 ]; then
CMD="sudo $CMD" CMD="sudo $CMD"
fi fi
$CMD $CMD
} }
...@@ -134,7 +134,7 @@ installFile() { ...@@ -134,7 +134,7 @@ installFile() {
local sum=$(openssl sha1 -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_FILE} does not match. Aborting."
exit 1 exit 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment