Skip to content

Commit

Permalink
expose helm exit code when returning
Browse files Browse the repository at this point in the history
this should expose the helm error code when returning
  • Loading branch information
Dan Farrell authored Dec 12, 2018
1 parent 72fa948 commit b90b43e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ EOF
# run helm command with args and opts in correct order
set +e # ignore errors
${HELM_BIN} ${TILLER_HOST:+--host "$TILLER_HOST" }"$cmd" $subcmd "$@" "${cmdopts[@]}"

helm_exit_code=$?
# cleanup on-the-fly decrypted files
[[ ${#decfiles[@]} -gt 0 ]] && rm -v "${decfiles[@]}"
}
Expand Down Expand Up @@ -494,5 +494,4 @@ case "${1:-help}" in
exit 1
;;
esac

exit 0
exit ${helm_exit_code:-0}

0 comments on commit b90b43e

Please sign in to comment.