mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 12:32:06 +08:00
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:
parent
e3f6e51984
commit
f85d60789e
@ -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…
x
Reference in New Issue
Block a user