Skip to content

Commit

Permalink
Fixed referencing the wrong env variable if SHA sum doesn't match.
Browse files Browse the repository at this point in the history
  • Loading branch information
zerola committed Mar 15, 2018
1 parent b335bfd commit 08a92b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/get
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 08a92b2

Please sign in to comment.