瀏覽代碼

Ensure *.sh are LF-style, so that they can be used directly by Docker for Windows (#5793)

Jimm Chen 10 月之前
父節點
當前提交
b8999e367a
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      .gitattributes

+ 7 - 0
.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