diff --git a/.github/workflows/check_pending_sql.yml b/.github/workflows/check_pending_sql.yml index de67fe0dc..1f5746155 100644 --- a/.github/workflows/check_pending_sql.yml +++ b/.github/workflows/check_pending_sql.yml @@ -18,7 +18,7 @@ jobs: - name: Semicolon check run: | 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. (;)" exit 1 else