diff --git a/bin/dib-lint b/bin/dib-lint index 2b737abc3..ce4c94558 100755 --- a/bin/dib-lint +++ b/bin/dib-lint @@ -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