diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2018-01-28 14:48:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-28 14:48:56 +0100 |
commit | 94e00635226a2999baa6dfedf4d70cbca42a4f1b (patch) | |
tree | 7157efd62cc53c88b2a691cdb75888f02437e1a7 /apps/installer | |
parent | 69598ff1992693718a059e75afdcb69ca4e34a01 (diff) |
Installer: Force exit with direct command
Diffstat (limited to 'apps/installer')
-rw-r--r-- | apps/installer/main.sh | 3 |
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 |