Merge "dib-lint: ensure file finish with a new line"
This commit is contained in:
commit
43827916d5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user