abort script in END_FOLD on non-zero exit code
This commit is contained in:
parent
4f2f88c7b0
commit
86d34f0e65
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue