summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2018-01-28 14:48:56 +0100
committerGitHub <noreply@github.com>2018-01-28 14:48:56 +0100
commit94e00635226a2999baa6dfedf4d70cbca42a4f1b (patch)
tree7157efd62cc53c88b2a691cdb75888f02437e1a7
parent69598ff1992693718a059e75afdcb69ca4e34a01 (diff)
Installer: Force exit with direct command
-rw-r--r--apps/installer/main.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/installer/main.sh b/apps/installer/main.sh
index 7123117a40..44fc65efb0 100644
--- a/apps/installer/main.sh
+++ b/apps/installer/main.sh
@@ -67,7 +67,8 @@ function _switch() {
}
# run option directly if specified in argument
-[ ! -z $1 ] && _switch "${options[$cmdopt-1]}" && exit 0
+[ ! -z $1 ] && _switch "${options[$cmdopt-1]}"
+[ ! -z $1 ] && exit 0
select opt in "${options[@]}"
do