diff --git a/.gitattributes b/.gitattributes index 12e24e8..3e193f9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,3 +7,9 @@ # PowerShell is more forgiving but the same logic applies. *.ps1 text eol=crlf + +# Shell scripts run inside the Linux container; they MUST stay LF even when +# checked out on Windows. autocrlf=true would otherwise inject CR and break +# `set -o pipefail`, shebangs, and heredocs (e.g. docker/setup-melo.sh failing +# the image build with "set: pipefail: invalid option name"). +*.sh text eol=lf