From ea2e24f31b2b91896c112820e3af5ba52f6f23b0 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Thu, 30 Dec 2021 01:18:41 +0100 Subject: [PATCH] feat(Apps/CI): Add check for broadcast_text (#9771) --- apps/ci/ci-pending.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/ci/ci-pending.sh b/apps/ci/ci-pending.sh index 2b07719cb..9cc7d14d6 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"