mirror of
https://github.com/bin456789/reinstall.git
synced 2025-09-09 10:01:46 +00:00
core: 修复 wmic 换行符不是 \r\n 而是 \r\r\n 导致无法正确解析数据
This commit is contained in:
@@ -2164,7 +2164,9 @@ to_lower() {
|
||||
}
|
||||
|
||||
del_cr() {
|
||||
sed 's/\r$//'
|
||||
# wmic/reg 换行符是 \r\r\n
|
||||
# wmic nicconfig where InterfaceIndex=$id get MACAddress,IPAddress,IPSubnet,DefaultIPGateway | hexdump -c
|
||||
sed 's/\r+$//'
|
||||
}
|
||||
|
||||
del_empty_lines() {
|
||||
|
Reference in New Issue
Block a user