summaryrefslogtreecommitdiff
path: root/src/core/libs
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2011-04-24 13:22:12 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2011-04-24 13:22:12 +0200
commitcfeaf0e3b7d8c2b75cf66361e330906f4fed5f7d (patch)
tree7da83930dd16d3e6ec11afda4498f9fecf01c6a4 /src/core/libs
parentea7010cef98714545b24999588c33661ad7f8efa (diff)
make AIF exit with the exitcode of the last failing phase
Diffstat (limited to 'src/core/libs')
-rwxr-xr-xsrc/core/libs/lib-flowcontrol.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/libs/lib-flowcontrol.sh b/src/core/libs/lib-flowcontrol.sh
index 9bf3fa4..0e336f4 100755
--- a/src/core/libs/lib-flowcontrol.sh
+++ b/src/core/libs/lib-flowcontrol.sh
@@ -170,10 +170,12 @@ depend_procedure ()
start_process ()
{
- execute phase preparation
- execute phase basics
- execute phase system
- execute phase finish
+ ret=0
+ execute phase preparation || ret=$?
+ execute phase basics || ret=$?
+ execute phase system || ret=$?
+ execute phase finish || ret=$?
+ return $ret
}