Installer: Force exit with direct command

This commit is contained in:
Yehonal
2018-01-28 14:48:56 +01:00
committed by GitHub
parent 69598ff199
commit 94e0063522

View File

@@ -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