Fix sys/game check in CI

This commit is contained in:
ChillerDragon 2024-06-25 12:18:42 +08:00
parent 01adf6a404
commit 0492ca26ec

View file

@ -71,11 +71,17 @@ jobs:
- name: Check game messages - name: Check game messages
run: | run: |
errors="$(grep -FA1 'System()' $(grep MsgGame -lr messages7/) | grep "return true")" if errors="$(grep -FA1 'System()' $(grep MsgGame -lr messages7/) | grep "return true")"
[ "$errors" = "" ] || { printf '%s\n' "$errors"; exit 1; } then
printf '%s\n' "$errors"
exit 1
fi
- name: Check system messages - name: Check system messages
run: | run: |
errors="$(grep -FA1 'System()' $(grep MsgSys -lr messages7/) | grep "return false")" if errors="$(grep -FA1 'System()' $(grep MsgSys -lr messages7/) | grep "return false")"
[ "$errors" = "" ] || { printf '%s\n' "$errors"; exit 1; } then
printf '%s\n' "$errors"
exit 1
fi