Merge pull request #3686 from zerola/fix_get_script

Fixed referencing the wrong env variable if SHA sum doesn't match.
pull/3681/head
Matthew Fisher 7 years ago committed by GitHub
commit ff63cde934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save