This commit is contained in:
teldra 2022-02-07 04:02:45 +01:00
parent 9b1fe24f3d
commit 30dba64dc7
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ multiplechoice() {
use+=" ${input[$i]}"
fi
done
while input "[${choices}]: " "${input[1]}"; do
for i in $(seq 1 "$(( ${#input[@]} - 1 ))"); do
while input "[${choices}]: " "${input[0]}"; do
for i in $(seq 0 "${#input[@]}"); do
if [[ "${output}" == "${input[$i]}" ]] || [[ "${output}" == "${input[$i]:0:2}" ]]; then
echo setconf add "${1}" "${input[$i]}"
done=1