mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-09 13:59:58 +00:00
core: 修复 wmic 换行符不是 \r\n 而是 \r\r\n 导致无法正确解析数据
This commit is contained in:
parent
2a8e760b97
commit
4f54703e3b
@ -2164,7 +2164,9 @@ to_lower() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
del_cr() {
|
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() {
|
del_empty_lines() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user