Add newline adding cleanup script
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
while IFS= read -r -d '' f; do
|
||||||
|
[ -f "$f" ] || continue
|
||||||
|
[ -s "$f" ] || continue
|
||||||
|
|
||||||
|
if [ "$(tail -c1 "$f")" != "" ]; then
|
||||||
|
printf '\n' >> "$f"
|
||||||
|
fi
|
||||||
|
done < <(git ls-files -z)
|
||||||
Reference in New Issue
Block a user