Add a script to ensure new lines exist in all files.

This commit is contained in:
alex committed 2023-02-05 19:08:13 -08:00
1 parent 6803a456b3
commit c77e975a31
1 file changed
+10
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
git ls-files -z | while IFS= read -rd '' f
do
if file --mime-encoding "$f" | grep -qv binary
then
tail -c1 < "$f" | read -r _ || echo >> "$f"
fi
done