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

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" echo "ERROR: $i contains tab characters"
rc=1 rc=1
fi fi
if [ "$(tail -c 1 $i)" != "" ]; then
echo "ERROR: No newline at end of file: $i"
fi
done done
exit $rc exit $rc