File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,7 @@ jobs:
396396 python3 - <<'PY'
397397 import json
398398 import os
399+ import textwrap
399400 from pathlib import Path
400401
401402 workspace = os.environ["GITHUB_WORKSPACE"]
@@ -437,15 +438,16 @@ jobs:
437438 workspace_path = Path(workspace)
438439 uv_candidate = workspace_path / ".venv" / "bin" / "uv"
439440 uv_cmd = uv_candidate.as_posix() if uv_candidate.exists() else "uv"
440- script = f'''#!/usr/bin/env bash
441- set -euo pipefail
442- LOG="{workspace}/.unity-mcp/mcp-server-startup-debug.log"
443- mkdir -p "$(dirname "$LOG")"
444- echo "" >> "$LOG"
445- echo "[ $(date -Iseconds) ] Starting unity MCP server" >> "$LOG"
446- exec >> "$LOG" 2>&1
447- exec {uv_cmd} "$@"
448- ' ''
441+ script = textwrap.dedent(f"""\
442+ #!/usr/bin/env bash
443+ set -euo pipefail
444+ LOG="{workspace}/.unity-mcp/mcp-server-startup-debug.log"
445+ mkdir -p "$(dirname "$LOG")"
446+ echo "" >> "$LOG"
447+ echo "[ $(date -Iseconds) ] Starting unity MCP server" >> "$LOG"
448+ exec >> "$LOG" 2>&1
449+ exec {uv_cmd} "$@"
450+ """)
449451 runner_script.write_text(script)
450452 runner_script.chmod(0o755)
451453
You can’t perform that action at this time.
0 commit comments