From 0ea33d53e6a9ad992b83863bc2b2c857004047d6 Mon Sep 17 00:00:00 2001 From: rmcdermo Date: Tue, 8 Aug 2023 14:06:22 -0400 Subject: [PATCH] Workflows: another attempt at line endings check --- .github/workflows/Line_Endings.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Line_Endings.yml b/.github/workflows/Line_Endings.yml index e3d87b0..cf0b1ad 100644 --- a/.github/workflows/Line_Endings.yml +++ b/.github/workflows/Line_Endings.yml @@ -25,11 +25,11 @@ jobs: - name: Check for CFLF line endings run: | - grep -IURl --exclude={"*.pdf","*.png"} --exclude-dir=".git" --exclude-dir="output" '\r'$ > tmp.txt + grep -IURl --exclude={"*.pdf","*.png"} --exclude-dir=".git" '\r'$ > tmp.txt nlines=`cat tmp.txt | wc -l` if [ $nlines -gt 0 ]; then echo "matl-db repo text files with dos line endings:" - cat $crlf_temp + cat tmp.txt exit 1 fi