From a915d298f21017f34790448ae482cbd74a084e4e Mon Sep 17 00:00:00 2001 From: ZiYun Liu <95838698+DaShygoa@users.noreply.github.com> Date: Wed, 19 Aug 2026 23:57:20 +0800 Subject: [PATCH] fix: force LF line endings for shell scripts (#1017) docker/entrypoint.sh runs under dash inside the container image. A Windows checkout with core.autocrlf=true rewrites it to CRLF, and dash aborts at startup because the carriage return becomes part of the -e flag argument. --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..9174f419 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Shell entrypoints are executed with sh/dash inside the container image. A +# Windows checkout with core.autocrlf=true rewrites them to CRLF, and dash +# then aborts with "set: Illegal option" because the carriage return becomes +# part of the "-e" flag argument (docker/entrypoint.sh). +*.sh text eol=lf