fix: Add missing new line for select

This commit is contained in:
Timo Reymann
2023-02-15 19:54:22 +01:00
committed by GitHub
parent 91c2509af6
commit 717bb546a0
+3
View File
@@ -119,6 +119,7 @@ confirm() {
# echo "Your choice: ${options[$option]}" # echo "Your choice: ${options[$option]}"
list() { list() {
_prompt_text "$1 " _prompt_text "$1 "
echo "" >&2
local opts=("${@:2}") local opts=("${@:2}")
local opts_count=$(($# -1)) local opts_count=$(($# -1))
@@ -176,6 +177,8 @@ list() {
# echo "Your choices: ${checked}" # echo "Your choices: ${checked}"
checkbox() { checkbox() {
_prompt_text "$1" _prompt_text "$1"
echo "" >&2
local opts; opts=("${@:2}") local opts; opts=("${@:2}")
local opts_count; opts_count=$(($# -1)) local opts_count; opts_count=$(($# -1))
_new_line_foreach_item "${opts[@]}" _new_line_foreach_item "${opts[@]}"