From 8cf91bb313e5923f01383acbbe8396296dc8254e Mon Sep 17 00:00:00 2001 From: zetaloop Date: Sun, 2 Aug 2026 02:42:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E5=A4=8Dge?= =?UTF-8?q?osite=E7=BB=84=E5=90=8D=E5=B8=A6=E5=BC=95=E5=8F=B7=E6=97=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 +- shell/install_en.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 1dcc929..e117838 100644 --- a/install.sh +++ b/install.sh @@ -6901,7 +6901,7 @@ getDLCGeositeName() { escapedInput=$(escapeDLCRegexPattern "${normalizedInput}") local matchedLine= - matchedLine=$(grep -n -m1 -E "^[[:space:]]*-[[:space:]]*name:[[:space:]]*${escapedInput}[[:space:]]*$" "${dlcFilePath}") + matchedLine=$(grep -n -m1 -E "^[[:space:]]*-[[:space:]]*name:[[:space:]]*\"?${escapedInput}\"?[[:space:]]*$" "${dlcFilePath}") if [[ -n "${matchedLine}" ]]; then echo "${normalizedInput}" fi diff --git a/shell/install_en.sh b/shell/install_en.sh index 4c82d02..d2a0e1d 100644 --- a/shell/install_en.sh +++ b/shell/install_en.sh @@ -5729,7 +5729,7 @@ getDLCGeositeName() { escapedInput=$(escapeDLCRegexPattern "${normalizedInput}") local matchedLine= - matchedLine=$(grep -n -m1 -E "^[[:space:]]*-[[:space:]]*name:[[:space:]]*${escapedInput}[[:space:]]*$" "${dlcFilePath}") + matchedLine=$(grep -n -m1 -E "^[[:space:]]*-[[:space:]]*name:[[:space:]]*\"?${escapedInput}\"?[[:space:]]*$" "${dlcFilePath}") if [[ -n "${matchedLine}" ]]; then echo "${normalizedInput}" fi