Skip to content

Commit

Permalink
Workflows: another attempt at line endings check
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcdermo committed Aug 8, 2023
1 parent a2c8740 commit 0ea33d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Line_Endings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ea33d5

Please sign in to comment.