1 Commits

Author SHA1 Message Date
d67061705d fix git grep
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 7s
Gentoo Utils / grep (push) Successful in 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) Successful in 27s
Gentoo Utils / fuzz (push) Failing after 41s
2025-12-14 20:44:01 -06:00

View File

@@ -4,7 +4,7 @@ on: [push]
defaults: defaults:
run: run:
shell: bash -el {0} shell: bash -l {0}
jobs: jobs:
build-oci-image: build-oci-image:
@@ -193,13 +193,12 @@ jobs:
- name: grep for patterns - name: grep for patterns
# negate git grep ret code because 1 means no findings # negate git grep ret code because 1 means no findings
run: | run: |
git --no-pager grep -E 'todo!|dbg!' -- '*.rs' && echo "exit 1" || echo "exit 0" echo "if git --no-pager grep -E 'todo!|dbg!' -- '*.rs'..."
# git grep -E 'todo!|dbg!' -- '*.rs' && exit 1 || exit 0 if ! git --no-pager grep -E 'todo!|dbg!' -- '*.rs'; then
# if ! git --no-pager grep -E 'todo!|dbg!' -- '*.rs'; then echo "EXIT 0 WE GOT HERE PIPELINE"
# echo "EXIT 0 WE GOT HERE PIPELINE" exit 0
# exit 0 else
# else echo "EXIT 1 WE GOT HERE PIPELINE"
# echo "EXIT 1 WE GOT HERE PIPELINE" exit 1
# exit 1 fi
# fi