From f85d60789e6ac87707a6d6da40966669bc68728a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=85=8E=E9=A5=BC=E6=9E=9C=E5=AD=90=E5=8D=B7=E9=B2=A8?= =?UTF-8?q?=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Thu, 6 Feb 2025 18:21:37 +0800 Subject: [PATCH] fix: Remove unnecessary braces in MAC address modification logic - Fixed syntax issues in MAC address modification function - Removed redundant closing braces in conditional statements - Maintained existing MAC address modification workflow - Improved script readability and syntax correctness --- scripts/run/cursor_mac_id_modifier.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run/cursor_mac_id_modifier.sh b/scripts/run/cursor_mac_id_modifier.sh index 6511220..18522bb 100644 --- a/scripts/run/cursor_mac_id_modifier.sh +++ b/scripts/run/cursor_mac_id_modifier.sh @@ -449,7 +449,7 @@ modify_mac_address() { if [ -z "$interfaces" ]; then log_error "未找到可用的网络接口" return 1 - } + fi echo log_info "发现以下网络接口:" @@ -470,7 +470,7 @@ modify_mac_address() { if [ -z "$selected_interface" ]; then log_error "无效的选择" return 1 - } + fi # 生成新的MAC地址 local new_mac=$(generate_random_mac)