Skip to content

Commit 42cb6c2

Browse files
fix: enforce LF line endings for shell scripts via .gitattributes
Unity Cloud Build Windows builds fail because shell scripts get checked out with CRLF line endings on Windows, but execute on Unix-based build agents. Adding `*.sh text eol=lf` ensures Git always uses LF for .sh files regardless of platform. Closes #9649 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent df35da1 commit 42cb6c2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ Explorer/Assets/StreamingAssets/AssetBundles/**/*.meta -filter=lfs -diff=lfs -me
1616
*.dll filter=lfs diff=lfs merge=lfs -text
1717

1818

19+
##############################################################################
20+
# shell scripts — force LF so they run correctly on Unix-based build agents
21+
# even when checked out on Windows
22+
#
23+
##############################################################################
24+
*.sh text eol=lf
25+
26+
1927
##############################################################################
2028
# unity specifics
2129
#

0 commit comments

Comments
 (0)