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
This commit is contained in:
Jordan Brown
2018-01-11 02:00:51 -08:00
committed by ShizCalev
parent e31b2f749b
commit 3bc88ec88e

View File

@@ -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;