fix: make debug core probes POSIX-safe
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user