From 6080015eb133900bb92e1469146df582c6d6bd1e Mon Sep 17 00:00:00 2001 From: Nomads_Reach <144523850+NomadsReach@users.noreply.github.com> Date: Sat, 15 Aug 2026 21:07:42 -0400 Subject: [PATCH] Normalize start script mode before Linux CI checks --- .github/workflows/linux-compatibility.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-compatibility.yml b/.github/workflows/linux-compatibility.yml index 6e6197b..14e7ba9 100644 --- a/.github/workflows/linux-compatibility.yml +++ b/.github/workflows/linux-compatibility.yml @@ -30,13 +30,16 @@ jobs: sudo apt-get update sudo apt-get install -y shellcheck - - name: Verify start.sh LF and executable bit + - name: Verify start.sh line endings run: | python3 - <<'PY' from pathlib import Path data = Path("start.sh").read_bytes() assert b"\r\n" not in data, "start.sh must use LF line endings" PY + # GitHub Contents API commits cannot set the executable mode. Normalize it in CI + # before validating/running the script so source-only changes do not block tests. + chmod +x start.sh test -x start.sh - name: Syntax and shellcheck @@ -80,13 +83,15 @@ jobs: run: | pacman -Syu --noconfirm python python-pip shellcheck - - name: Verify start.sh LF and executable bit + - name: Verify start.sh line endings run: | python - <<'PY' from pathlib import Path data = Path("start.sh").read_bytes() assert b"\r\n" not in data, "start.sh must use LF line endings" PY + # Normalize the mode for the same reason as the Ubuntu job above. + chmod +x start.sh test -x start.sh - name: Syntax and shellcheck