blob: bf479cde0cd867668a5c0aab92a816576af71774 [file] [log] [blame]
#!/usr/bin/env bash
if grep --quiet --files-with-matches --binary-files=without-match --max-count=1 --regexp='.*' "$1"; then
if [ "$(tail --bytes=1 "$1")" ]; then
echo "ERROR: No new line at end of $1."; false;
fi
fi