Skip to content

Commit 574e6a7

Browse files
author
Julien Adam
committed
Adding a git attributes file to avoid EOL issues
CRLF in .sh healthcheck scripts causes failures on Windows Docker
1 parent 3accda9 commit 574e6a7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto
3+
4+
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
5+
# in Windows via a file share from Linux, the scripts will work.
6+
*.{cmd,[cC][mM][dD]} text eol=crlf
7+
*.{bat,[bB][aA][tT]} text eol=crlf
8+
*.{ics,[iI][cC][sS]} text eol=crlf
9+
10+
# Force bash scripts to always use LF line endings so that if a repo is accessed
11+
# in Unix via a file share from Windows, the scripts will work.
12+
*.sh text eol=lf

0 commit comments

Comments
 (0)