mirror of
https://github.com/bin456789/reinstall.git
synced 2026-02-21 18:37:49 +08:00
core: 修复 wmic 换行符不是 \r\n 而是 \r\r\n 导致无法正确解析数据
Some checks are pending
运行主程序 / 运行主程序 (./reinstall.bat --debug --password 123@@@, windows-latest) (push) Waiting to run
运行主程序 / 运行主程序 (sudo bash reinstall.sh --debug --password 123@@@, ubuntu-latest) (push) Waiting to run
同步到 Gitlab / 同步到 Gitlab (push) Waiting to run
同步到 Gitlab CN / 同步到 Gitlab CN (push) Waiting to run
Some checks are pending
运行主程序 / 运行主程序 (./reinstall.bat --debug --password 123@@@, windows-latest) (push) Waiting to run
运行主程序 / 运行主程序 (sudo bash reinstall.sh --debug --password 123@@@, ubuntu-latest) (push) Waiting to run
同步到 Gitlab / 同步到 Gitlab (push) Waiting to run
同步到 Gitlab CN / 同步到 Gitlab CN (push) Waiting to run
This commit is contained in:
parent
2a8e760b97
commit
4f54703e3b
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user