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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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