From ed0e67e853716f19cada8eb46240a400d478ef1b Mon Sep 17 00:00:00 2001 From: mugenrei Date: Wed, 18 Feb 2026 10:52:51 -0300 Subject: [PATCH] fix: CRLF line endings in couchdb-init.sh, add .gitattributes Shell scripts with CRLF line endings crash inside Linux containers with 'set: illegal option -' and 'command not found' errors. - Strip CRLF -> LF in couchdb-init.sh - Add .gitattributes to enforce LF on .sh, .yml, .ini, .md etc. so this never regresses on Windows checkouts --- .gitattributes | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d8ee028 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +# Always checkout shell scripts with LF line endings (never CRLF) +*.sh text eol=lf + +# Standard text files — auto normalize on checkout +*.md text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.ini text eol=lf +*.env text eol=lf +*.json text eol=lf +*.ts text eol=lf +*.js text eol=lf +*.mjs text eol=lf +*.css text eol=lf + +# Binary files — no line ending conversion +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.woff2 binary +*.woff binary