Merge "dib-lint: ensure file finish with a new line"

This commit is contained in:
Jenkins 2014-05-28 00:41:03 +00:00 committed by Gerrit Code Review
commit 43827916d5
1 changed files with 4 additions and 0 deletions

View File

@ -109,5 +109,9 @@ for i in $(find elements -type f -and -name '*.md' -or -type f -executable); do
echo "ERROR: $i contains tab characters"
rc=1
fi
if [ "$(tail -c 1 $i)" != "" ]; then
echo "ERROR: No newline at end of file: $i"
fi
done
exit $rc