diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2f53224 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,13 @@ +# Default: let git auto-detect text vs binary +* text=auto + +# Ensure shell scripts and Dockerfiles are LF on every platform. +# Without this, git on Windows checks them out with CRLF and Docker +# builds (alpine bash) fail with errors like: +# /tmp/install-zig.sh: line 2: set: pipefail: invalid option name +# because the trailing \r corrupts shell built-in option parsing. + +*.sh text eol=lf +*.bash text eol=lf +Dockerfile text eol=lf +*.dockerfile text eol=lf