From d2ad99fb685c9ecfc66721ddf1610b168138154d Mon Sep 17 00:00:00 2001 From: Patrick Lewis Date: Sat, 5 Jun 2021 01:46:59 -0700 Subject: [PATCH] fix(CI): update semicolon check (#6228) --- .github/workflows/check_pending_sql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_pending_sql.yml b/.github/workflows/check_pending_sql.yml index 57624b52f..ddfe5b8e5 100644 --- a/.github/workflows/check_pending_sql.yml +++ b/.github/workflows/check_pending_sql.yml @@ -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'|tr -d " "|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