fix: make debug core probes POSIX-safe

This commit is contained in:
Codex
2026-06-07 02:19:15 +00:00
parent 37c8d767da
commit a3d9917804
+1 -1
View File
@@ -27,7 +27,7 @@ function coreFetchCommand(path: string, init?: { method?: string; body?: unknown
const url = `http://127.0.0.1:8080${path}`;
const body = init?.body === undefined ? "" : JSON.stringify(init.body);
const script = [
"set -euo pipefail",
"set -eu",
"if command -v backend-core >/dev/null 2>&1; then",
` exec backend-core --fetch-json ${shellQuote(url)} --method ${shellQuote(method)}${body.length > 0 ? ` --body-json ${shellQuote(body)}` : ""}`,
"fi",