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[@]}")