forked from ondra/server-sdk
fix lineending checks for .git
This commit is contained in:
parent
57e0245b1b
commit
b6950b9bfe
@ -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 "----------------------------------"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user