scripts/functions
changeset 726 8b628f8dc108
parent 719 dcb9bea1e09b
child 738 e8c68d0d1a0c
     1.1 --- a/scripts/functions	Fri Jul 25 10:02:43 2008 +0000
     1.2 +++ b/scripts/functions	Sat Jul 26 09:22:42 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}]}'"