fixes
This commit is contained in:
parent
00c0da871c
commit
267b3d3c80
|
@ -20,8 +20,10 @@ multiplechoice() {
|
||||||
for i in $(seq 1 "$(( ${#input[@]} - 1 ))"); do
|
for i in $(seq 1 "$(( ${#input[@]} - 1 ))"); do
|
||||||
if [[ "${i}" == "1" ]]; then
|
if [[ "${i}" == "1" ]]; then
|
||||||
choices="${input[$i]}"
|
choices="${input[$i]}"
|
||||||
|
use="${input[$i]}"
|
||||||
else
|
else
|
||||||
choices="${choices}|${input[$i]}"
|
choices="${choices}|${input[$i]}"
|
||||||
|
use+=" ${input[$i]}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
while input "[${choices}]: " "${input[1]}"; do
|
while input "[${choices}]: " "${input[1]}"; do
|
||||||
|
@ -33,7 +35,7 @@ multiplechoice() {
|
||||||
done
|
done
|
||||||
if [[ -z "${done}" ]]; then
|
if [[ -z "${done}" ]]; then
|
||||||
echo wronginput "${output}"
|
echo wronginput "${output}"
|
||||||
echo use these: "${choices}"
|
echo use these: "${use}"
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user