1
0
Fork 0
mirror of https://github.com/correl/rebar.git synced 2025-03-27 01:11:47 -09:00

Exit with proper status code if 'eval' fails

This commit is contained in:
Roberto Aloi 2015-01-13 14:41:39 +01:00
parent 78379493d4
commit 0d5416218b
2 changed files with 8 additions and 0 deletions
priv/templates
test/upgrade_project/rel/files

View file

@ -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)

View file

@ -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)