Skip to content

Commit 27a46e3

Browse files
committed
Fix PowerShell script line endings for GitHub Actions
Change PowerShell scripts from CRLF to LF line endings to fix the build failure on Linux runners in GitHub Actions. The error was: /usr/bin/env: 'pwsh\r': No such file or directory This occurred because CRLF line endings caused the shebang line to be interpreted incorrectly on Unix systems. PowerShell Core (pwsh) works correctly with LF line endings on all platforms including Windows, so this change maintains cross-platform compatibility while fixing the CI build.
1 parent 25e322a commit 27a46e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
# Bash scripts should use LF
2020
*.sh text eol=lf
2121

22-
# Powershell scripts should use CRLF
23-
*.ps1 text eol=crlf
22+
# PowerShell scripts should use LF (for cross-platform compatibility and GitHub Actions)
23+
*.ps1 text eol=lf
2424

2525
# Documentation
2626
*.md text diff=markdown

0 commit comments

Comments
 (0)