Skip to content

Commit d2646d6

Browse files
committed
Enforce line-feed/new-line character as the only EOL for certain line-ending sensitive script files.
This problem happens when starting a Docker container that attempts to run these files. The line-endings could end up with carriage-return characters and the scripts may fail to execute. References: - https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreattributesFile - https://git-scm.com/docs/gitattributes - https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
1 parent 5e30b3c commit d2646d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/docker-entrypoint.sh text eol=lf
2+
build/docker-npmrc.sh text eol=lf

0 commit comments

Comments
 (0)