From a73666680d88f5dbc41264f9b30d12245ab8f56a Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 30 Aug 2023 09:20:07 -0500 Subject: [PATCH] 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 --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..96eb05b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +build/docker-entrypoint.sh text eol=lf +build/docker-npmrc.sh text eol=lf