fix: make server status core probe POSIX-safe
This commit is contained in:
@@ -503,7 +503,7 @@ async function probe(url: string): Promise<unknown> {
|
|||||||
function dockerExecJson(container: string, path: string): unknown {
|
function dockerExecJson(container: string, path: string): unknown {
|
||||||
const url = `http://127.0.0.1:8080${path}`;
|
const url = `http://127.0.0.1:8080${path}`;
|
||||||
const script = [
|
const script = [
|
||||||
"set -euo pipefail",
|
"set -eu",
|
||||||
"if command -v backend-core >/dev/null 2>&1; then",
|
"if command -v backend-core >/dev/null 2>&1; then",
|
||||||
` exec backend-core --fetch-json ${shellQuote(url)}`,
|
` exec backend-core --fetch-json ${shellQuote(url)}`,
|
||||||
"fi",
|
"fi",
|
||||||
|
|||||||
Reference in New Issue
Block a user