summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/core/libs/lib-flowcontrol.sh4
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}
}