Browse Source

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
pull/213/head v0.0.73
煎饼果子卷鲨鱼辣椒 4 months ago
parent
commit
f85d60789e
  1. 4
      scripts/run/cursor_mac_id_modifier.sh

4
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)

Loading…
Cancel
Save