From 62a637771178f74adb591b233da5f8b0f403c90c Mon Sep 17 00:00:00 2001 From: rmcdermo Date: Tue, 8 Aug 2023 15:48:43 -0400 Subject: [PATCH] Workflows: what happens if I remove the $ --- .github/workflows/Line_Endings.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/Line_Endings.yml b/.github/workflows/Line_Endings.yml index e987b8b..47f1d05 100644 --- a/.github/workflows/Line_Endings.yml +++ b/.github/workflows/Line_Endings.yml @@ -25,8 +25,7 @@ jobs: - name: Check for CRLF line endings run: | - ls - grep -rl --exclude={"*.pdf","*.png"} --exclude-dir=".git" $'\r' > tmp.txt + grep -rl --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:"