From fefe2fe95fffbe314964b6041ae20ee045c63b97 Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 26 May 2026 23:18:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=85=8D=E7=BD=AEshell=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=BD=BF=E7=94=A8LF=E8=A1=8C=E5=B0=BE=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决Windows挂载到Docker时shell脚本因CRLF换行符报错的问题 --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitattributes b/.gitattributes index 0b217dc..4eecca1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,6 @@ *.js linguist-language=PHP *.css linguist-language=PHP *.html linguist-language=PHP + +# Shell脚本始终使用LF行尾,避免Windows挂载到Docker时CRLF报错 +*.sh text eol=lf