diff options
author | Julian Fleischer <tirednesscankill@warhog.net> | 2018-08-03 16:07:53 +0200 |
---|---|---|
committer | Julian Fleischer <tirednesscankill@warhog.net> | 2018-08-27 12:23:25 +0200 |
commit | 86d34f0e657e039843ff264358e77ffb2763803f (patch) | |
tree | 2a3382305dc52dbb7aaad9fa101954b43f6b5897 | |
parent | 4f2f88c7b08d3bf724720ae2779fbfc39061643d (diff) |
abort script in END_FOLD on non-zero exit code
-rwxr-xr-x | .travis/before_install.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.travis/before_install.sh b/.travis/before_install.sh index 800d490abb..8026a96f89 100755 --- a/.travis/before_install.sh +++ b/.travis/before_install.sh @@ -18,6 +18,8 @@ BEGIN_FOLD () { END_FOLD () { RET=$? echo "travis_fold:end:${CURRENT_FOLD_NAME}" - return $RET + if [ $RET != 0 ]; then + echo "${CURRENT_FOLD_NAME} failed with status code ${RET}" + fi } |