From 88b48bfabb07294ad794964524f678347fbadf21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=85=8E=E9=A5=BC=E6=9E=9C=E5=AD=90=E5=8D=B7=E9=B2=A8?= =?UTF-8?q?=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Wed, 21 Jan 2026 19:25:43 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(cursor=5Fmac=5Fid=5Fmodifier):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=95=E5=8F=B7=E5=B5=8C=E5=A5=97=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E8=84=9A=E6=9C=AC=E8=A7=A3=E6=9E=90=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一引号并显式转义,避免引号嵌套导致脚本解析错误 ``` --- scripts/run/cursor_mac_id_modifier.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/run/cursor_mac_id_modifier.sh b/scripts/run/cursor_mac_id_modifier.sh index bde42ec..7e72ff9 100644 --- a/scripts/run/cursor_mac_id_modifier.sh +++ b/scripts/run/cursor_mac_id_modifier.sh @@ -3025,7 +3025,8 @@ main() { log_info "当前用户: $CURRENT_USER" log_cmd_output "sw_vers" "macOS 版本信息" log_cmd_output "which codesign" "codesign 路径" - log_cmd_output "ls -ld "$CURSOR_APP_PATH"" "Cursor 应用信息" + # 修复:统一引号并显式转义,避免引号嵌套导致脚本解析错误 + log_cmd_output "ls -ld \"$CURSOR_APP_PATH\"" "Cursor 应用信息" # 新增环境检查 if [[ $(uname) != "Darwin" ]]; then