

















@@ -98,8 +98,6 @@ const guestPath =
9898const guestOpenClaw = "openclaw";
9999const guestOpenClawEntry = '"$(npm root -g)/openclaw/openclaw.mjs"';
100100const guestOpenClawEntryRunner = `node ${guestOpenClawEntry}`;
101-const guestOpenClawEntryExecScript =
102-'entry="$(npm root -g)/openclaw/openclaw.mjs"; exec node "$entry" "$@"';
103101const guestNode = "node";
104102const guestNpm = "npm";
105103@@ -583,9 +581,12 @@ class MacosSmoke {
583581args: string[],
584582options: { check?: boolean; env?: Record<string, string> } = {},
585583): string {
586-return this.guestExec(
587-["/bin/sh", "-c", guestOpenClawEntryExecScript, "openclaw-entry", ...args],
588-options,
584+const argv = args.map((arg) => shellQuote(arg)).join(" ");
585+return this.guestSh(
586+`set -e
587+entry="$(npm root -g)/openclaw/openclaw.mjs"
588+exec node "$entry" ${argv}`,
589+options.env,
589590);
590591}
591592此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。