From 94e00635226a2999baa6dfedf4d70cbca42a4f1b Mon Sep 17 00:00:00 2001 From: Yehonal Date: Sun, 28 Jan 2018 14:48:56 +0100 Subject: [PATCH] Installer: Force exit with direct command --- apps/installer/main.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/installer/main.sh b/apps/installer/main.sh index 7123117a4..44fc65efb 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