fix(ci): update semicolon check (#3767)

This commit is contained in:
Patrick Lewis
2020-11-25 15:48:39 -08:00
committed by GitHub
parent 9ed1048899
commit b9c78740d9

View File

@@ -18,7 +18,7 @@ jobs:
- name: Semicolon check
run: |
for i in `find data/sql/updates/pending* -name "*.sql" -type f`; do
if [[ $(tail -c 2 "$i") != ";" ]]; then
if [[ $(cat "$i"|tr -d '\n'|tail -c 1) != ";" ]]; then
echo "Missing Semicolon at the end of the file. (;)"
exit 1
else