Skip to content

Commit 86d34f0

Browse files
committed
abort script in END_FOLD on non-zero exit code
1 parent 4f2f88c commit 86d34f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis/before_install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ BEGIN_FOLD () {
1818
END_FOLD () {
1919
RET=$?
2020
echo "travis_fold:end:${CURRENT_FOLD_NAME}"
21-
return $RET
21+
if [ $RET != 0 ]; then
22+
echo "${CURRENT_FOLD_NAME} failed with status code ${RET}"
23+
fi
2224
}
2325

0 commit comments

Comments
 (0)