fix(CI): filter extra spaces (#5441)
This commit is contained in:
parent
eac6cdd5e0
commit
f2ca2c6b2c
1 changed files with 1 additions and 1 deletions
2
.github/workflows/check_pending_sql.yml
vendored
2
.github/workflows/check_pending_sql.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue