From c7917afd67c2bf696f0407af9412d12cf56296f0 Mon Sep 17 00:00:00 2001 From: Jon Kazama Date: Tue, 26 May 2026 20:24:02 +0200 Subject: [PATCH] Add LF override for shell scripts in .gitattributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream defaults all text files to CRLF (Windows-only dev). On Linux, bash refuses to execute shell scripts with CRLF line endings, which blocked the v0.1.0 pre-push hook with 'env: »bash\r«: nicht gefunden'. Override the default for *.sh, .githooks/*, and scripts/* to eol=lf so the hook + preflight runs cleanly on both Linux and Windows. --- .gitattributes | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index fc549fa..921952f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,13 @@ -# Auto detect text files and perform LF normalization +# Asriel's upstream default: CRLF for text files (Windows-only dev workflow). +# Kept intact to minimise the diff against upstream Craftimizer. * text eol=crlf -*.png binary \ No newline at end of file + +# Hellion Forge override: shell scripts and git hooks MUST be LF only, +# otherwise bash on Linux refuses to execute them with +# "env: »bash\r«: Datei nicht gefunden". This blocked the v0.1.0 release +# pipeline push on Linux before .gitattributes was extended. +*.sh text eol=lf +.githooks/* text eol=lf +scripts/* text eol=lf + +*.png binary