diff --git a/shell/select-option.sh b/shell/select-option.sh index d089682..0501fc3 100755 --- a/shell/select-option.sh +++ b/shell/select-option.sh @@ -13,7 +13,7 @@ function select_option { local clean_opt for opt; do multiselected+=(0) - if [[ "$opt" =~ ^\[.\]* ]]; then # choice starts with [x] + if [[ "$opt" =~ ^\[.\] ]]; then # choice starts with [x] shortcuts+=( "${opt:1:1}" ) choices+=( "${opt:3}" ) else