1.1 --- a/scripts/functions Fri Jul 25 10:02:43 2008 +0000
1.2 +++ b/scripts/functions Sun Jul 27 12:03:34 2008 +0000
1.3 @@ -5,6 +5,8 @@
1.4 # Prepare the fault handler
1.5 CT_OnError() {
1.6 ret=$?
1.7 + # Bail out early in subshell, the upper level shell will act accordingly.
1.8 + [ ${BASH_SUBSHELL} -eq 0 ] || exit $ret
1.9 CT_DoLog ERROR "Build failed in step '${CT_STEP_MESSAGE[${CT_STEP_COUNT}]}'"
1.10 for((step=(CT_STEP_COUNT-1); step>1; step--)); do
1.11 CT_DoLog ERROR " called in step '${CT_STEP_MESSAGE[${step}]}'"