diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e4ba11e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# Force LF line endings for shell scripts. +# Without this, Windows clones (git's core.autocrlf=true default) check out +# CRLF and the shebang dies with: /usr/bin/env: 'bash\r': No such file or directory (exit 127) +# Keep every *.sh blob byte-clean; existing clones need a forced re-checkout +# (rm -f .git/index && git reset --hard HEAD) because git does not rewrite a +# file whose blob is unchanged. +*.sh text eol=lf