Don't fail if no CRLF issues are found

This commit is contained in:
Eric Nemchik 2021-10-05 14:15:41 -05:00
parent 76dda79d4a
commit e05a5d0cb7

View file

@ -25,7 +25,7 @@ jobs:
- name: Check Line Endings
run: |
CRLF_ENDINGS=$(find . -not -type d -exec file "{}" ";" | grep CRLF)
CRLF_ENDINGS=$(find . -not -type d -exec file "{}" ";" | grep CRLF || true)
CRLF_ENDINGS_COUNT=$(echo "${CRLF_ENDINGS}" | wc -w)
if (( CRLF_ENDINGS_COUNT > 0 )); then
echo "The following files are not allowed:"