ignore .json files

This commit is contained in:
Damien Elmes 2020-03-13 20:46:09 +10:00
parent d9923b12ba
commit 2ed7e3d1cd

View File

@ -2,7 +2,7 @@
set -e
files=$(rg -l '[^\n]\z' -g '!*.{svg,scss}' || true)
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