diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2011-04-24 13:14:59 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2011-04-24 13:15:02 +0200 |
commit | ea7010cef98714545b24999588c33661ad7f8efa (patch) | |
tree | 5e2726367e4a853097caf9fcaeb381df656f5fc4 /src/core | |
parent | f48e72a9d4793c7fa93dc9e7232c3d80ee4c6e1d (diff) |
stop_installer(): when no exit code given, exit 0
This prevents the exit code of the last command (i.e. the test case)
"leaking" to the exit call.
Diffstat (limited to 'src/core')
-rwxr-xr-x | src/core/libs/lib-flowcontrol.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-flowcontrol.sh b/src/core/libs/lib-flowcontrol.sh index 4f3bbfa..9bf3fa4 100755 --- a/src/core/libs/lib-flowcontrol.sh +++ b/src/core/libs/lib-flowcontrol.sh @@ -212,11 +212,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} } |