Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #85 from farrellit/helm-exit-code
Browse files Browse the repository at this point in the history
expose helm exit code when returning
  • Loading branch information
szibis committed Mar 29, 2019
2 parents 56439fe + b90b43e commit 002d277
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 @@ -438,7 +438,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 @@ -511,5 +511,4 @@ case "${1:-help}" in
exit 1
;;
esac

exit 0
exit ${helm_exit_code:-0}

0 comments on commit 002d277

Please sign in to comment.