1 Commits

Author SHA1 Message Date
a88a5732cc fix git grep
Some checks failed
Gentoo Utils / check-format (push) Successful in 8s
Gentoo Utils / build (push) Successful in 19s
Gentoo Utils / test (push) Successful in 27s
Gentoo Utils / fuzz (push) Failing after 44s
Gentoo Utils / build-oci-image (push) Successful in 7s
Gentoo Utils / grep (push) Failing after 3s
Gentoo Utils / docs (push) Successful in 13s
2025-12-14 20:33:31 -06:00

View File

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