mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(ci): update semicolon check #3799
add sed to filter out comments with --
This commit is contained in:
2
.github/workflows/check_pending_sql.yml
vendored
2
.github/workflows/check_pending_sql.yml
vendored
@@ -18,7 +18,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"|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 at the end of the file. (;)"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user