From 146e76c6e6f3e51054d8bba5a8f4bc9565dab1c8 Mon Sep 17 00:00:00 2001 From: Ednunp <29843396+Ednunp@users.noreply.github.com> Date: Wed, 13 May 2026 17:06:07 +0100 Subject: [PATCH] Force LF line endings on server/ (bash/Python/systemd files) --- .gitattributes | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5c3171b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,14 @@ +# Default: let git auto-detect line endings. +* text=auto + +# Linux-bound bundle in server/ must keep LF line endings even when checked out on +# Windows. Bash and systemd both fail noisily on CRLF (bash sees the trailing \r as +# part of a command name; systemd's parser rejects the unit file). Anyone who clones +# the repo on Windows still gets LF for these files, and `scp` to a Pi delivers +# usable scripts straight away. +server/*.sh text eol=lf +server/*.py text eol=lf +server/*.service text eol=lf + +# .ps1 stays as-is — PowerShell handles either, but Windows tooling prefers CRLF. +*.ps1 text eol=crlf