Skip to content

Add Shell Script Handling to .gitattributes #2960#2961

Open
nativegold wants to merge 1 commit intosignalwire:masterfrom
nativegold:master
Open

Add Shell Script Handling to .gitattributes #2960#2961
nativegold wants to merge 1 commit intosignalwire:masterfrom
nativegold:master

Conversation

@nativegold
Copy link

When entrypoint.sh is edited on Windows, the file may end up with Windows-style line endings (CRLF).
This can cause the script to fail when the Docker container starts, because the shell inside the container expects Unix-style line endings (LF).

To prevent this, we should update .gitattributes to ensure all shell scripts use LF:

*.sh text eol=lf

This will guarantee that entrypoint.sh (and any other .sh files) work correctly in Docker environments regardless of the host OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant