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