diff --git a/functions/functions b/functions/functions index 7ccc4f6..1b671c9 100644 --- a/functions/functions +++ b/functions/functions @@ -20,8 +20,10 @@ multiplechoice() { for i in $(seq 1 "$(( ${#input[@]} - 1 ))"); do if [[ "${i}" == "1" ]]; then choices="${input[$i]}" + use="${input[$i]}" else choices="${choices}|${input[$i]}" + use+=" ${input[$i]}" fi done while input "[${choices}]: " "${input[1]}"; do @@ -33,7 +35,7 @@ multiplechoice() { done if [[ -z "${done}" ]]; then echo wronginput "${output}" - echo use these: "${choices}" + echo use these: "${use}" else break fi