Skip to content

Commit cd8c0bb

Browse files
committed
fix: put curl && tar on single line to avoid bash syntax error
The two-line form broke because YAML heredoc indentation put && at the start of a new line, which bash rejects. Single-line && chain avoids the issue.
1 parent a4040fc commit cd8c0bb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/macos-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ jobs:
363363
# fonts/FreeSansBold.otf relative to the writeable data dir.
364364
FONT_DIR="$GAME_DIR/fonts"
365365
mkdir -p "$FONT_DIR"
366-
curl -sL "https://ftp.gnu.org/gnu/freefont/freefont-otf-20120503.tar.gz" > /tmp/freefont.tar.gz
367-
&& tar xzf /tmp/freefont.tar.gz -C "$FONT_DIR" --strip-components=1 "freefont-20120503/FreeSansBold.otf" || true
366+
curl -sL "https://ftp.gnu.org/gnu/freefont/freefont-otf-20120503.tar.gz" > /tmp/freefont.tar.gz && tar xzf /tmp/freefont.tar.gz -C "$FONT_DIR" --strip-components=1 "freefont-20120503/FreeSansBold.otf" || true
368367
if [ ! -f "$FONT_DIR/FreeSansBold.otf" ]; then
369368
echo "::warning::Failed to download FreeSansBold.otf, game may fail to start"
370369
fi

0 commit comments

Comments
 (0)