fix(moonraker.sh): bug in instance confirmation

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-04-03 15:39:42 +02:00
parent 63ea1542ba
commit ae2395f86b

View File

@@ -80,21 +80,23 @@ function moonraker_setup_dialog(){
error_msg "Invalid Input!\n" error_msg "Invalid Input!\n"
else else
echo echo
read -p "${cyan}###### Install ${count} instance(s)? (Y/n):${default} " yn while true; do
case "${yn}" in read -p "${cyan}###### Install ${count} instance(s)? (Y/n):${default} " yn
Y|y|Yes|yes|"") case "${yn}" in
select_msg "Yes" Y|y|Yes|yes|"")
status_msg "Installing ${count} Moonraker instance(s) ... \n" select_msg "Yes"
moonraker_setup "${count}" status_msg "Installing ${count} Moonraker instance(s) ... \n"
break;; moonraker_setup "${count}"
N|n|No|no) break;;
select_msg "No" N|n|No|no)
error_msg "Exiting Moonraker setup ...\n" select_msg "No"
break;; error_msg "Exiting Moonraker setup ...\n"
*) break;;
print_error "Invalid command!" *)
;; error_msg "Invalid Input!\n"
esac ;;
esac
done
fi fi
done done
} }