anki/.github/scripts/trailing-newlines.sh

11 lines
207 B
Bash
Raw Normal View History

#!/bin/bash
set -e
2020-03-13 11:46:09 +01:00
files=$(rg -l '[^\n]\z' -g '!*.{svg,scss,json}' || true)
if [ "$files" != "" ]; then
echo "the following files are missing a newline on the last line:"
echo $files
exit 1
fi