Skip to content

Commit

Permalink
Fix Line Ending Issues for Shell Scripts in Docker for Windows 10 (#2932
Browse files Browse the repository at this point in the history
)

Shell scripts like entry_point.sh caused errors in Docker due to CRLF
line endings on Windows (`exec /tmp/entry_point.sh: no such file or
directory`).

Added `.gitattributes` to enforce LF line endings for *.sh files.

This resolves the issue and ensures consistent behavior across
platforms.
  • Loading branch information
manuelsh authored Jan 2, 2025
1 parent a3396b6 commit 4f405ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattibutes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Force LF line endings, needed for Docker to work on Windows
*.sh text eol=lf

0 comments on commit 4f405ba

Please sign in to comment.