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:
Tim Ruffing
2025-03-13 11:56:07 +01:00
parent a7a5117144
commit d87c3bc58f

View File

@@ -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