From 66a5030e79e380b03f5555863071604709b7dc28 Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Wed, 7 Apr 2021 13:22:42 +0100 Subject: [PATCH 1/2] Use Unix line endings for shell scripts * Specify line ending behaviour in EditorConfig like in dotnet/runtime * Update line endings These changes fix [SC1017](https://github.com/koalaman/shellcheck/wiki/SC1017) --- .editorconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.editorconfig b/.editorconfig index 74496fb9a7c..6fd562d452d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -21,6 +21,7 @@ indent_size = 4 # Shell scripts [*.sh] +end_of_line = lf indent_size = 4 # Xml project files From a95becee80511680a81e465bfabc0e41b9bb07ba Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Wed, 7 Apr 2021 14:09:39 +0100 Subject: [PATCH 2/2] Update .gitattributes --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 10790ce3949..c9033dc798a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,5 +2,6 @@ CHANGELOG.md merge=union * text=auto *.png binary *.rtf binary +*.sh text eol=lf testablescript.ps1 text eol=lf TestFileCatalog.txt text eol=lf