From 41c4df9fdbdb624dcf51a6311a562eeffd6c2b0e Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 15 Mar 2026 17:19:22 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E4=BF=AE=E5=A4=8D=20image-name=20?= =?UTF-8?q?=E6=9C=89=E7=89=B9=E6=AE=8A=E7=AC=A6=E5=8F=B7=E6=97=B6=E5=87=BA?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #575 --- trans.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index 9b85bdb..fc2d851 100644 --- a/trans.sh +++ b/trans.sh @@ -5852,7 +5852,7 @@ install_windows() { while true; do # 匹配成功 # 改成正确的大小写 - if matched_image_name=$(echo "$all_image_names" | grep -ix "$image_name"); then + if matched_image_name=$(printf '%s\n' "$all_image_names" | grep -Fix "$image_name"); then image_name=$matched_image_name image_index=$(wiminfo "$iso_install_wim" "$image_name" | grep 'Index:' | awk '{print $NF}') break