Skip to content

Commit 15fb248

Browse files
committed
fix: use printf instead of heredoc for chobby_config.json
Heredoc body at column 1 broke the YAML block scalar parser, causing the workflow file to be rejected. printf keeps every line at the correct indentation level.
1 parent df92c4b commit 15fb248

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/macos-build.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -344,17 +344,16 @@ jobs:
344344
# to the game data directory before launching the engine.
345345
# Since this bundle has no launcher, we generate the file
346346
# directly inside the Chobby .sdd so the VFS can find it.
347-
cat > "$LOBBY_SDD/chobby_config.json" <<CHOBBY_CFG
348-
{
349-
"server": {
350-
"address": "server4.beyondallreason.info",
351-
"port": 8200,
352-
"protocol": "spring",
353-
"serverName": "BAR"
354-
},
355-
"game": "byar"
356-
}
357-
CHOBBY_CFG
347+
printf '%s\n' \
348+
'{' \
349+
' "server": {' \
350+
' "address": "server4.beyondallreason.info",' \
351+
' "port": 8200,' \
352+
' "protocol": "spring",' \
353+
' "serverName": "BAR"' \
354+
' },' \
355+
' "game": "byar"' \
356+
'}' > "$LOBBY_SDD/chobby_config.json"
358357
359358
360359
echo "Game content staged:"

0 commit comments

Comments
 (0)