diff options
author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2021-12-30 01:18:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 21:18:41 -0300 |
commit | ea2e24f31b2b91896c112820e3af5ba52f6f23b0 (patch) | |
tree | ac49107e40783d4dfbb0dbf37d4525c5193eac0f /apps | |
parent | ca14e6e7bc4529931f3940af069e4660bba8ceb9 (diff) |
feat(Apps/CI): Add check for broadcast_text (#9771)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/ci/ci-pending.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/ci/ci-pending.sh b/apps/ci/ci-pending.sh index 2b07719cb4..9cc7d14d6c 100644 --- a/apps/ci/ci-pending.sh +++ b/apps/ci/ci-pending.sh @@ -31,5 +31,16 @@ for i in `find data/sql/updates/pending* -name "*.sql" -type f`; do fi done +for i in `find data/sql/updates/pending* -name "*sql" -type f`; do + if $(cat "$i"|sed "s/'.*'\(.*\)/\1/g"|grep -q -i -E "broadcast_text"); then + echo "> broadcast_text check - Failed" + echo " - DON'T EDIT broadcast_text TABLE UNLESS YOU KNOW WHAT YOU ARE DOING!" + echo " - This error can safely be ignored if the changes are approved to be sniffed." + exit 1 + else + echo "> broadcast_text check - OK" + fi +done + echo echo "Everything looks good" |