From 0beff3d99a3ff06a903d396924c394a39d80e124 Mon Sep 17 00:00:00 2001 From: Alessandro Cristofori Date: Tue, 25 Jul 2023 15:49:59 +0200 Subject: [PATCH 1/2] Issue #124 - Windows `CR/LF` line endings in .sh files This commit introduces `.gitattributes` file to force `lf` line endings on files with `.sh` extensions --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..434a509 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Declare files that will always have LF line endings on checkout. +*.sh text eol=lf \ No newline at end of file From 17c8d77668b5d7fc2c472dc8473763d72c604496 Mon Sep 17 00:00:00 2001 From: Alessandro Cristofori Date: Tue, 25 Jul 2023 15:52:21 +0200 Subject: [PATCH 2/2] addded newline at end of file --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 434a509..22ede88 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,4 +2,4 @@ * text=auto # Declare files that will always have LF line endings on checkout. -*.sh text eol=lf \ No newline at end of file +*.sh text eol=lf