Skip to content

Commit 805e5fa

Browse files
authored
Merge pull request #6 from grloper/claude/demo-script-line-endings-5m2r6i
Pin shell scripts to LF endings via .gitattributes
2 parents 8a1ba5e + 47f76a9 commit 805e5fa

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Normalize line endings on commit; let Git pick per-platform on checkout.
2+
* text=auto
3+
4+
# Shell scripts must keep LF endings on every platform. A CRLF checkout on
5+
# Windows turns the `#!/usr/bin/env bash` shebang into `bash\r`, which the
6+
# kernel then fails to resolve ("/usr/bin/env: 'bash\r': No such file...").
7+
*.sh text eol=lf

0 commit comments

Comments
 (0)