Skip to content

Commit d87c3bc

Browse files
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
1 parent a7a5117 commit d87c3bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/ci.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ if [ $build_exit_code -ne 0 ]; then
9494
*snapshot*)
9595
# Ignore internal compiler errors in gcc-snapshot and clang-snapshot
9696
grep -e "internal compiler error:" -e "PLEASE submit a bug report" make.log
97-
return $?;
97+
exit $?
9898
;;
9999
*)
100-
return 1;
100+
exit 1
101101
;;
102102
esac
103103
fi

0 commit comments

Comments
 (0)