From b8999e367aa31e15a4e230d9156ce636af40912a Mon Sep 17 00:00:00 2001 From: Jimm Chen <38829153+chjfth@users.noreply.github.com> Date: Tue, 2 Jul 2024 13:38:18 +0800 Subject: [PATCH] Ensure *.sh are LF-style, so that they can be used directly by Docker for Windows (#5793) --- .gitattributes | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..dcf74f06de --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# Ensure that .sh scripts use LF as line separator, even if they are checked out +# to Windows(NTFS) file-system, by a user of Docker for Window. +# These .sh scripts will be run from the Container after `docker compose up -d`. +# If they appear to be CRLF style, Dash from the Container will fail to execute +# them. + +*.sh text eol=lf