From a81647a4f8694a6b8aa15e5704491e77c1c70ca6 Mon Sep 17 00:00:00 2001 From: Cheng Zhou Date: Tue, 23 Jun 2026 22:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E8=8F=9C=E5=8D=95=E4=B8=AD?= =?UTF-8?q?=E5=AF=B9=E8=87=AA=E5=8A=A8=E8=AF=86=E5=88=AB=E7=9A=84=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=A1=B9=E6=A0=87=E6=B3=A8=20[=E8=87=AA=E5=8A=A8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 72c3c94d..bfec102a 100755 --- a/install.sh +++ b/install.sh @@ -143,10 +143,14 @@ select_menu() { local i for i in "${!options[@]}"; do + local tag="" tag_plain="" + if [[ "$i" -eq "${default_index:-99}" ]]; then + tag=" ${CC_SUCCESS}[自动]${C_RESET}"; tag_plain=" [自动]" + fi if [[ "$i" -eq "$selected" ]]; then - ctms_box_line "${C_BLUE}${C_BOLD}" "$UI_BOX_WIDTH" "${ICON_BULLET} ${options[$i]}" "${CC_INFO}${C_BOLD}${ICON_BULLET} ${options[$i]}${C_RESET}" + ctms_box_line "${C_BLUE}${C_BOLD}" "$UI_BOX_WIDTH" "${ICON_BULLET} ${options[$i]}${tag_plain}" "${CC_INFO}${C_BOLD}${ICON_BULLET} ${options[$i]}${C_RESET}${tag}" else - ctms_box_line "${C_BLUE}${C_BOLD}" "$UI_BOX_WIDTH" "${ICON_BULLET_OFF} ${options[$i]}" "${CC_MUTED}${ICON_BULLET_OFF} ${options[$i]}${C_RESET}" + ctms_box_line "${C_BLUE}${C_BOLD}" "$UI_BOX_WIDTH" "${ICON_BULLET_OFF} ${options[$i]}${tag_plain}" "${CC_MUTED}${ICON_BULLET_OFF} ${options[$i]}${C_RESET}${tag}" fi done ctms_box_bottom "${C_BLUE}${C_BOLD}" "$UI_BOX_WIDTH"