jonathangreen
12 years ago
2 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||||
|
#!/bin/bash |
||||||
|
|
||||||
|
RETURN=0 |
||||||
|
FILES=`find -L $1 -name "*.info" -o -name "*.txt" -o -name "*.md"` |
||||||
|
echo "Testing for files with DOS line endings..." |
||||||
|
for FILE in $FILES |
||||||
|
do |
||||||
|
file $FILE | grep CRLF |
||||||
|
if [ $? == 0 ] |
||||||
|
then |
||||||
|
RETURN=1 |
||||||
|
fi |
||||||
|
done |
||||||
|
exit $RETURN |
Loading…
Reference in new issue