fix(klipper.sh): bug in instance confirmation

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-04-03 15:47:56 +02:00
parent 977bd2c144
commit c6d7ba8f9c
2 changed files with 17 additions and 17 deletions

View File

@@ -77,6 +77,7 @@ function klipper_setup_dialog(){
error_msg "Invalid input!\n" error_msg "Invalid input!\n"
else else
echo echo
while true; do
read -p "${cyan}###### Install ${count} instance(s)? (Y/n):${white} " yn read -p "${cyan}###### Install ${count} instance(s)? (Y/n):${white} " yn
case "${yn}" in case "${yn}" in
Y|y|Yes|yes|"") Y|y|Yes|yes|"")
@@ -89,9 +90,9 @@ function klipper_setup_dialog(){
abort_msg "Exiting Klipper setup ...\n" abort_msg "Exiting Klipper setup ...\n"
break;; break;;
*) *)
print_error "Invalid command!" error_msg "Invalid Input!\n";;
;;
esac esac
done
fi fi
done done
} }

View File

@@ -93,8 +93,7 @@ function moonraker_setup_dialog(){
error_msg "Exiting Moonraker setup ...\n" error_msg "Exiting Moonraker setup ...\n"
break;; break;;
*) *)
error_msg "Invalid Input!\n" error_msg "Invalid Input!\n";;
;;
esac esac
done done
fi fi