From b2ba0377b7f06c1de17a3c0e4f3427bf8276e2e1 Mon Sep 17 00:00:00 2001 From: Timo Reymann Date: Fri, 17 Feb 2023 13:05:01 +0100 Subject: [PATCH] merge: Merge main --- src/prompts.sh | 1 + test.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/prompts.sh b/src/prompts.sh index 62c300e..cdea8c0 100644 --- a/src/prompts.sh +++ b/src/prompts.sh @@ -24,6 +24,7 @@ _key_input() { fi local input="${a}${b}" + # shellcheck disable=SC1087 case "$input" in "$ESC[A") echo up ;; "$ESC[B") echo down ;; diff --git a/test.sh b/test.sh index 47a8ed1..dd4bdf0 100755 --- a/test.sh +++ b/test.sh @@ -41,13 +41,13 @@ validate_password() { fi } # Password prompt -#pass=$(with_validate 'password "Enter random password"' validate_password) +pass=$(with_validate 'password "Enter random password"' validate_password) # Checkbox checked=$(checkbox "Select one or more items" "${options[@]}") # text input with validation -#text=$(with_validate 'input "Please enter something and confirm with enter"' validate_present) +text=$(with_validate 'input "Please enter something and confirm with enter"' validate_present) # Select option=$(list "Select one item" "${options[@]}")