diff --git a/bin/dib-lint b/bin/dib-lint index 2b737abc..ce4c9455 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