diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-08-16 21:03:12 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-08-16 21:03:12 -0300 |
commit | 4f2c12cb85411e4702e3a6b29f847b08447ef0f0 (patch) | |
tree | 703eb04e60160c82fb3d3a2fc4af64dd8d67222d /src/core/libs/lib-flowcontrol.sh | |
parent | 74eb858cd962a3178724b83cefa8f43baaffa1ef (diff) | |
parent | 13c8c0813328eb8f52b03b3c53a32f1f40558021 (diff) |
Merge branch 'master' of https://projects.archlinux.org/git/aif
Conflicts:
doc/official_installation_guide_en
Diffstat (limited to 'src/core/libs/lib-flowcontrol.sh')
-rwxr-xr-x | src/core/libs/lib-flowcontrol.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/libs/lib-flowcontrol.sh b/src/core/libs/lib-flowcontrol.sh index 4f3bbfa..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 } @@ -212,11 +214,11 @@ start_installer () # use this function to stop the installation procedure. -# $1 exit code (optional) +# $1 exit code (optional, defaults to 0) stop_installer () { log "-------------- STOPPING INSTALLATION ----------" cleanup_runtime [ "$var_UI_TYPE" = dia ] && clear - exit $1 + exit ${1:-0} } |