From ea7010cef98714545b24999588c33661ad7f8efa Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sun, 24 Apr 2011 13:14:59 +0200 Subject: 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. --- src/core/libs/lib-flowcontrol.sh | 4 ++-- 1 file 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} } -- cgit v1.2.3-54-g00ecf