at the very least fixes tgui?

This commit is contained in:
SandPoot
2024-03-12 21:37:22 -03:00
parent 7feb673279
commit e8f490154f
4 changed files with 26 additions and 3 deletions
+16
View File
@@ -117,4 +117,20 @@ do
done < <(jq -r '[.map_file] | flatten | .[]' $json)
done
# Check for non-515 compatable .proc/ syntax
if grep -P --exclude='__byond_version_compat.dm' '\.proc/' code/**/*.dm; then
echo
echo -e "${RED}ERROR: Outdated proc reference use detected in code, please use proc reference helpers.${NC}"
st=1
fi;
if [ $st = 0 ]; then
echo
echo -e "${GREEN}No errors found using grep!${NC}"
fi;
if [ $st = 1 ]; then
echo
echo -e "${RED}Errors found, please fix them and try again.${NC}"
fi;
exit $st