fix lineending checks for .git

This commit is contained in:
Filip Bucek 2019-11-08 11:26:09 +01:00
parent 57e0245b1b
commit b6950b9bfe

View File

@ -10,7 +10,7 @@ cd $SOURCE_DIR
info "Checking line ending"
RESULT=$( find . -not -type d ! -path '.git' -exec file "{}" ";" | grep "ASCII text, with CRLF" | cat )
RESULT=$( find . -not -type d ! -path '*.git/*' -exec file "{}" ";" | grep "ASCII text, with CRLF" | cat )
if [ ! -z "$RESULT" ]; then
echo "----------------------------------"