From bb67c26a1c5e40f4b703654ea951bbc71ab31906 Mon Sep 17 00:00:00 2001 From: Mitchell R Date: Wed, 13 May 2026 03:33:41 +0200 Subject: [PATCH] fix(deploy): mark setup-pi-kiosk.sh executable in git index + add .gitattributes Windows chmod doesn't propagate to git's mode bits, so the script landed as 100644 (non-exec) and `./deploy/scripts/setup-pi-kiosk.sh` gave "command not found" on the Pi. Update index to 100755 and add .gitattributes to force LF on shell scripts / systemd units to head off the related CRLF-shebang trap. --- .gitattributes | 13 +++++++++++++ deploy/scripts/setup-pi-kiosk.sh | 0 2 files changed, 13 insertions(+) create mode 100644 .gitattributes mode change 100644 => 100755 deploy/scripts/setup-pi-kiosk.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6cecf3c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,13 @@ +# Force LF line endings on files that get executed on Linux. Without this, +# Windows checkouts commit CRLF and shell shebangs break on the Pi +# ("/usr/bin/env bash\r" → command not found). +*.sh text eol=lf +*.bash text eol=lf +*.service text eol=lf +*.script text eol=lf +*.plymouth text eol=lf +Dockerfile* text eol=lf +*.conf text eol=lf +*.yaml text eol=lf +*.yml text eol=lf +deploy/pam.d/* text eol=lf diff --git a/deploy/scripts/setup-pi-kiosk.sh b/deploy/scripts/setup-pi-kiosk.sh old mode 100644 new mode 100755