Skip to content

Commit abd0f5d

Browse files
AlexsJonesclaude
andcommitted
fix: heredoc syntax error in ux-test preflight script
The closing ) of $(cat <<'HINT' ... HINT) was parsed as a syntax token by bash, breaking `make ux-tests`. Switch to `read -d ''` to avoid the subshell entirely. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c6e6c3b commit abd0f5d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

hack/check-ux-backend.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525
# Differentiate between "nothing listening" and "listening but broken".
2626
if [ "$status" = "000" ]; then
2727
reason="nothing is listening on localhost:${PORT} — no dev server or \`sympozium serve\` is running."
28-
fix=$(cat <<'HINT'
28+
read -r -d '' fix <<'HINT' || true
2929
Fix — pick one of:
3030
A) Vite dev server flow:
3131
make web-dev-serve # then, in another shell:
@@ -34,16 +34,14 @@ Fix — pick one of:
3434
sympozium serve # then, in another shell:
3535
make ux-tests-serve
3636
HINT
37-
)
3837
else
3938
reason="something is listening on :${PORT} but /api/v1/namespaces returned HTTP ${status}. Likely a stale port-forward or bad token."
40-
fix=$(cat <<'HINT'
39+
read -r -d '' fix <<'HINT' || true
4140
Fix:
4241
1. Kill the stale listener: lsof -t -i :${PORT} | xargs kill 2>/dev/null || true
4342
2. Start a fresh server: make web-dev-serve (or) sympozium serve
4443
3. Re-run: make ux-tests (or) make ux-tests-serve
4544
HINT
46-
)
4745
fi
4846

4947
cat >&2 <<EOF

0 commit comments

Comments
 (0)