Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Exit with proper status code if 'eval' fails
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoaloi committed Jan 23, 2015
1 parent 7837949 commit 0d54162
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions priv/templates/simplenode.runner
Expand Up @@ -304,6 +304,10 @@ case "$1" in

shift
$NODETOOL eval "$1"
ES_EVAL=$?
if [ "$ES_EVAL" -ne 0 ]; then
exit $ES_EVAL
fi
;;

remote_console)
Expand Down
4 changes: 4 additions & 0 deletions test/upgrade_project/rel/files/dummy
Expand Up @@ -245,6 +245,10 @@ case "$1" in

shift
$NODETOOL eval "$1"
ES_EVAL=$?
if [ "$ES_EVAL" -ne 0 ]; then
exit $ES_EVAL
fi
;;

remote_console)
Expand Down

0 comments on commit 0d54162

Please sign in to comment.