From 6afda4f82c361bd238957de5f9cc3824d8aa0ec9 Mon Sep 17 00:00:00 2001 From: zkk <1007518571@qq.com> Date: Thu, 27 Jun 2024 17:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E8=A3=85=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E6=97=A0=E9=9C=80=E6=89=8B=E5=8A=A8=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/libs/interactive.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libs/interactive.sh b/tools/libs/interactive.sh index 917da56..c8c28ec 100755 --- a/tools/libs/interactive.sh +++ b/tools/libs/interactive.sh @@ -21,7 +21,7 @@ set -Ee ask_reboot() { local reply while true; do - read -erp "Reboot NOW? [y/N]: " -i "N" reply + reply="N" case "${reply}" in [yY]*) msg "Going to reboot in 5 seconds!" @@ -46,7 +46,7 @@ ask_update_entry() { run_add_update_entry="0" msg "\n" 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 [yY]*) msg "Trying to add 'update manager' entry to moonraker.conf ..."