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

This commit is contained in:
Jimm Chen 2024-07-02 13:38:18 +08:00 committed by GitHub
parent 59ad091e69
commit b8999e367a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

7
.gitattributes vendored Normal file
View File

@ -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