Jonathan Green
12 years ago
3 changed files with 16 additions and 1 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