mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 03:02:38 +00:00
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:
@@ -15,7 +15,14 @@ if [ "$BUILD_TOOLS" = false ]; then
|
|||||||
fi;
|
fi;
|
||||||
if grep '^/*var/' code/**/*.dm; then
|
if grep '^/*var/' code/**/*.dm; then
|
||||||
echo "Unmanaged global var use detected in code, please use the helpers."
|
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
|
exit 1
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user