diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index 5ec33a6..53666fb 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -165,5 +165,9 @@ jobs: - name: grep for patterns run: | - egrep 'todo!|dbg!' -qvr src + if git grep -e 'dbg!' -- '*.rs'; then + false + else + true + fi diff --git a/check_commands.txt b/check_commands.txt index e6677ed..2bb8a74 100644 --- a/check_commands.txt +++ b/check_commands.txt @@ -3,4 +3,4 @@ ninja rustfmt -C build ninja rustdoc -C build ninja clippy -C build ninja test -C build -egrep 'todo!|dbg!' -qvr src +if git grep -e 'dbg!' -- '*.rs'; then false; else true; fi