mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(CI): filter extra spaces (#5441)
This commit is contained in:
2
.github/workflows/check_pending_sql.yml
vendored
2
.github/workflows/check_pending_sql.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- name: Semicolon check
|
- name: Semicolon check
|
||||||
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'|tr -d " "|tail -c 1) != ";" ]]; then
|
||||||
echo "Missing Semicolon (;) or multiple newlines at the end of the file."
|
echo "Missing Semicolon (;) or multiple newlines at the end of the file."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user