fix(CI): filter extra spaces (#5441)

This commit is contained in:
Patrick Lewis
2021-04-26 11:59:58 -07:00
committed by GitHub
parent eac6cdd5e0
commit f2ca2c6b2c

View File

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