scripts/functions
branch1.2
changeset 733 f1257533021a
parent 731 65614732cfe7
child 739 8ebf5ea601d8
     1.1 --- a/scripts/functions	Sat Jul 26 15:14:48 2008 +0000
     1.2 +++ b/scripts/functions	Sat Jul 26 15:16:40 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}]}'"