1 Commits

Author SHA1 Message Date
8a5e0aa8a1 fix git grep
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 7s
Gentoo Utils / grep (push) Failing after 2s
Gentoo Utils / check-format (push) Successful in 7s
Gentoo Utils / docs (push) Successful in 13s
Gentoo Utils / build (push) Successful in 20s
Gentoo Utils / test (push) Has been cancelled
Gentoo Utils / fuzz (push) Has been cancelled
2025-12-14 20:38:48 -06:00

View File

@@ -191,9 +191,11 @@ jobs:
uses: actions/checkout@v5
- name: grep for patterns
# negate git grep ret code because 1 means no findings
run: |
set -x
git --no-pager grep -E 'todo!|dbg!' -- '*.rs'
retcode=$?
echo "retcode=$?"
(( $retcode )) && echo "exit 1" || echo "exit 0"
if git --no-pager grep -E 'todo!|dbg!' -- '*.rs'; then
exit 0
else
exit 1
fi