mirror of
https://github.com/correl/rebar.git
synced 2024-11-14 19:19:30 +00:00
Merge pull request #430 from robertoaloi/fail-if-nodetool-eval-fails
Exit with proper status code if 'eval' fails
This commit is contained in:
commit
83156cc1ef
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue