From 47f76a94e9c02f0d9747e7fbd81d5c2602a909c4 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 17 Jul 2026 19:34:16 +0000 Subject: [PATCH] Pin shell scripts to LF endings via .gitattributes demo.sh's `#!/usr/bin/env bash` shebang breaks on Windows checkouts where autocrlf rewrites it to CRLF, producing `/usr/bin/env: 'bash\r': No such file or directory`. Add a .gitattributes that forces LF for *.sh on every platform so the script stays runnable regardless of the checkout's core.autocrlf setting. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_016ATUW6fbK4Spc3fJKL6se1 --- .gitattributes | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..80334de --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# Normalize line endings on commit; let Git pick per-platform on checkout. +* text=auto + +# Shell scripts must keep LF endings on every platform. A CRLF checkout on +# Windows turns the `#!/usr/bin/env bash` shebang into `bash\r`, which the +# kernel then fails to resolve ("/usr/bin/env: 'bash\r': No such file..."). +*.sh text eol=lf