From 2eee6b9342c6f7655ae244c979cc541740b758e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=8C?= <66155308+miaoermua@users.noreply.github.com> Date: Wed, 27 Dec 2023 22:42:12 +0800 Subject: [PATCH] Update cattools.sh --- cattools.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cattools.sh b/cattools.sh index f3caa7d..59a4438 100644 --- a/cattools.sh +++ b/cattools.sh @@ -340,11 +340,10 @@ while :; do echo "7. setup bypass gateway 旁路网关" echo "0. Exit 退出脚本" echo "----------------------------------------" - echo "请选择数字按下回车: " - choice="" - while [ -z $choice ]; do - read choice - done + echo -en "请选择数字按下回车: " + if [ -z "$choice" ]; then + choice="0" + fi case $choice in 1)