ci: Fix exiting from ci.sh on error
Fixes the following bash error when make fails:
./ci/ci.sh: line 100: return: can only `return' from a function or
sourced script
This commit is contained in:
4
ci/ci.sh
4
ci/ci.sh
@@ -94,10 +94,10 @@ if [ $build_exit_code -ne 0 ]; then
|
|||||||
*snapshot*)
|
*snapshot*)
|
||||||
# Ignore internal compiler errors in gcc-snapshot and clang-snapshot
|
# Ignore internal compiler errors in gcc-snapshot and clang-snapshot
|
||||||
grep -e "internal compiler error:" -e "PLEASE submit a bug report" make.log
|
grep -e "internal compiler error:" -e "PLEASE submit a bug report" make.log
|
||||||
return $?;
|
exit $?
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
return 1;
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user