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
This commit is contained in:
煎饼果子卷鲨鱼辣椒 2025-02-06 18:21:37 +08:00
parent e3f6e51984
commit f85d60789e

View File

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