Skip to content

Commit

Permalink
Workflow: this might work
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcdermo committed Aug 8, 2023
1 parent 5fd98ab commit 88fb7f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/Line_Endings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ jobs:

- name: Check for CRLF line endings
run: |
grep -IUlr --exclude={"*.pdf","*.png"} --exclude-dir=".git" $'\r'
# nlines=$(cat tmp.txt | wc -l)
# if [ $nlines -gt 0 ]; then
# echo "matl-db repo text files with dos line endings:"
# cat tmp.txt
# exit 1
# fi
grep -IUlr --exclude={"*.pdf","*.png"} --exclude-dir=".git" $'\r' > tmp.txt
exit 0
nlines=$(cat tmp.txt | wc -l)
if [ $nlines -gt 0 ]; then
echo "matl-db repo text files with dos line endings:"
cat tmp.txt
exit 1
fi
Expand Down
6 changes: 0 additions & 6 deletions test.txt

This file was deleted.

0 comments on commit 88fb7f8

Please sign in to comment.