chore(CI): Improve error message of check_pending_sql (#4081)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Check pending sql for Procedure/Function
|
name: Check pending SQL
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
for i in `find data/sql/updates/pending* -name "*.sql" -type f`; do
|
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'|tail -c 1) != ";" ]]; then
|
||||||
echo "Missing Semicolon at the end of the file. (;)"
|
echo "Missing Semicolon (;) or multiple newlines at the end of the file."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user