Skip to content

armgit / muxin

Public Imported from GitHub
0

All your machines, one app. For you and your AI agents: agent sessions, desktops, files, logs and GitHub across your Macs, Linux and Windows machines, with an MCP server.

Shell scripts stay LF in Windows checkouts

Adib Hannacde4855c4122
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..e161774
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,4 @@
+# Shell scripts are baked into every build (include_str!) and run by sh on
+# Linux and macOS: a Windows checkout (core.autocrlf) mustn't give them CRLF,
+# or sh fails with `\r: not found`.
+*.sh text eol=lf
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eece60d..20b0105 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -48,5 +48,8 @@ jobs:
run: |
$fxc = Get-ChildItem "${env:ProgramFiles(x86)}\Windows Kits\10\bin" -Recurse -Filter fxc.exe | Where-Object { $_.FullName -match '\\x64\\' } | Sort-Object FullName -Descending | Select-Object -First 1
"GPUI_FXC_PATH=$($fxc.FullName)" >> $env:GITHUB_ENV
+ - name: Shell scripts checked out with LF (.gitattributes)
+ shell: bash
+ run: "! git ls-files --eol '*.sh' | grep crlf"
- run: cargo build --workspace --locked
- run: cargo test -p muxen-agent --locked