mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(ci): update semicolon check (#3767)
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 [[ $(tail -c 2 "$i") != ";" ]]; then
|
if [[ $(cat "$i"|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