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.
This commit is contained in:
Mitchell R 2026-05-13 03:33:41 +02:00
parent 93cf261f07
commit bb67c26a1c
2 changed files with 13 additions and 0 deletions

13
.gitattributes vendored Normal file
View file

@ -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

0
deploy/scripts/setup-pi-kiosk.sh Normal file → Executable file
View file