only exit on error if there actually was one

This commit is contained in:
Brad Parker 2017-10-20 21:39:03 -04:00
parent 97ddd9526c
commit 5429180b3f

View File

@ -278,7 +278,7 @@ buildbot_handle_message() {
buildbot_log "$MESSAGE"
# used by Travis-CI to exit immediately if a core build fails, instead of trying to build RA anyways (for static/console builds)
if [ "$EXIT_ON_ERROR" = "1" ]; then
if [ $RET -ne 0 ] && [ "$EXIT_ON_ERROR" = "1" ]; then
exit 1
fi
}