修改安装过程无需手动确认

This commit is contained in:
张开科 2024-06-27 17:00:42 +08:00
parent d75a3aeb01
commit 6afda4f82c

View File

@ -21,7 +21,7 @@ set -Ee
ask_reboot() { ask_reboot() {
local reply local reply
while true; do while true; do
read -erp "Reboot NOW? [y/N]: " -i "N" reply reply="N"
case "${reply}" in case "${reply}" in
[yY]*) [yY]*)
msg "Going to reboot in 5 seconds!" msg "Going to reboot in 5 seconds!"
@ -46,7 +46,7 @@ ask_update_entry() {
run_add_update_entry="0" run_add_update_entry="0"
msg "\n" msg "\n"
while true; do while true; do
read -erp "Do you want to add 'update manager' entry to your moonraker.conf? [Y/n]: " -i "Y" reply reply="Y"
case "${reply}" in case "${reply}" in
[yY]*) [yY]*)
msg "Trying to add 'update manager' entry to moonraker.conf ..." msg "Trying to add 'update manager' entry to moonraker.conf ..."