From 3bc88ec88e8d34b51eda0f8eb3ea0a079b1615f6 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 11 Jan 2018 02:00:51 -0800 Subject: [PATCH] Fails the build if CENTCOM is misspelled (#34256) * Fails the build if CENTCOM is misspelled * Make centcomm guard saner * No need for the extra greps --- tools/travis/build_byond.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/travis/build_byond.sh b/tools/travis/build_byond.sh index 286fbf68d2b..546a4147608 100755 --- a/tools/travis/build_byond.sh +++ b/tools/travis/build_byond.sh @@ -15,7 +15,14 @@ if [ "$BUILD_TOOLS" = false ]; then fi; if grep '^/*var/' code/**/*.dm; then echo "Unmanaged global var use detected in code, please use the helpers." - grep '^var/' code/*.dm | echo + exit 1 + fi; + if grep -i 'centcomm' code/**/*.dm; then + echo "Misspelling(s) of CENTCOM detected in code, please remove the extra M(s)." + exit 1 + fi; + if grep -i 'centcomm' _maps/**/*.dmm; then + echo "Misspelling(s) of CENTCOM detected in maps, please remove the extra M(s)." exit 1 fi;