diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-01-11 02:43:22 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2026-01-11 02:43:22 -0500 |
| commit | 292bbd0bce87926157a58f2f1f6a73046a122130 (patch) | |
| tree | d3cede5ca2a66192c7cbb5ddc8e34bcfdce1407a /scripts | |
| parent | e73e6a5ce96a7fd0e849cd112321e3160bedff80 (diff) | |
Fixing resoltion prmpt
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/lib_prompts.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/lib_prompts.sh b/scripts/lib_prompts.sh index ae493842..45772abb 100644 --- a/scripts/lib_prompts.sh +++ b/scripts/lib_prompts.sh @@ -119,9 +119,8 @@ prompt_resolution_choice() { echo "$YELLOW -- Enter 1. for monitor resolution less than 1440p (< 1440p)" echo "$YELLOW -- Enter 2. for monitor resolution equal to or higher than 1440p (≥ 1440p)" - echo -n "$CAT Enter the number of your choice (1 or 2): " - read choice - case $choice in + read -r -p "${CAT} Enter the number of your choice (1 or 2): " choice + case "$choice" in 1) echo "< 1440p"; return ;; 2) echo "≥ 1440p"; return ;; *) echo "${ERROR} Invalid choice. Please enter 1 for < 1440p or 2 for ≥ 1440p." ;; |
