Skip to content

Commit

Permalink
Enforce line-feed/new-line character as the only EOL for certain line…
Browse files Browse the repository at this point in the history
…-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
  • Loading branch information
kaladay committed Aug 30, 2023
1 parent 12f4169 commit a736666
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
@@ -0,0 +1,2 @@
build/docker-entrypoint.sh text eol=lf
build/docker-npmrc.sh text eol=lf

0 comments on commit a736666

Please sign in to comment.