From 267b3d3c801717acab85f0e494a5968fe3108d15 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 9 May 2021 23:21:38 +0200 Subject: [PATCH] fixes --- functions/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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