diff --git a/scripts/klipper.sh b/scripts/klipper.sh index f55adb9..34acdbc 100644 --- a/scripts/klipper.sh +++ b/scripts/klipper.sh @@ -77,21 +77,22 @@ function klipper_setup_dialog(){ error_msg "Invalid input!\n" else echo - read -p "${cyan}###### Install ${count} instance(s)? (Y/n):${white} " yn - case "${yn}" in - Y|y|Yes|yes|"") - select_msg "Yes" - status_msg "Installing ${count} Klipper instance(s) ... \n" - klipper_setup "${count}" - break;; - N|n|No|no) - select_msg "No" - abort_msg "Exiting Klipper setup ...\n" - break;; - *) - print_error "Invalid command!" - ;; - esac + while true; do + read -p "${cyan}###### Install ${count} instance(s)? (Y/n):${white} " yn + case "${yn}" in + Y|y|Yes|yes|"") + select_msg "Yes" + status_msg "Installing ${count} Klipper instance(s) ... \n" + klipper_setup "${count}" + break;; + N|n|No|no) + select_msg "No" + abort_msg "Exiting Klipper setup ...\n" + break;; + *) + error_msg "Invalid Input!\n";; + esac + done fi done } diff --git a/scripts/moonraker.sh b/scripts/moonraker.sh index 3981546..9e1685f 100644 --- a/scripts/moonraker.sh +++ b/scripts/moonraker.sh @@ -93,8 +93,7 @@ function moonraker_setup_dialog(){ error_msg "Exiting Moonraker setup ...\n" break;; *) - error_msg "Invalid Input!\n" - ;; + error_msg "Invalid Input!\n";; esac done fi