From 4f54703e3befc042c021ce91d27d00eb5b45b258 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 26 Mar 2025 23:25:07 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8D=20wmic=20=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C=E7=AC=A6=E4=B8=8D=E6=98=AF=20\r\n=20=E8=80=8C?= =?UTF-8?q?=E6=98=AF=20\r\r\n=20=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E8=A7=A3=E6=9E=90=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reinstall.sh b/reinstall.sh index 2a6a639..b2cea49 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -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() {