aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Fleischer <[email protected]>2018-08-03 16:07:53 +0200
committerJulian Fleischer <[email protected]>2018-08-27 12:23:25 +0200
commit86d34f0e657e039843ff264358e77ffb2763803f (patch)
tree2a3382305dc52dbb7aaad9fa101954b43f6b5897
parentmove script sections info individual files and comply with shellcheck (diff)
downloaddiscoin-86d34f0e657e039843ff264358e77ffb2763803f.tar.xz
discoin-86d34f0e657e039843ff264358e77ffb2763803f.zip
abort script in END_FOLD on non-zero exit code
-rwxr-xr-x.travis/before_install.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/.travis/before_install.sh b/.travis/before_install.sh
index 800d490ab..8026a96f8 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
}