mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 16:56:33 +00:00
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:
parent
93cf261f07
commit
bb67c26a1c
2 changed files with 13 additions and 0 deletions
13
.gitattributes
vendored
Normal file
13
.gitattributes
vendored
Normal 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
0
deploy/scripts/setup-pi-kiosk.sh
Normal file → Executable file
Loading…
Reference in a new issue