1 Commits

Author SHA1 Message Date
e7a7e59589 fix git grep
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 7s
Gentoo Utils / grep (push) Successful in 3s
Gentoo Utils / check-format (push) Successful in 8s
Gentoo Utils / build (push) Successful in 18s
Gentoo Utils / test (push) Has started running
Gentoo Utils / fuzz (push) Has been cancelled
Gentoo Utils / docs (push) Has been cancelled
2025-12-14 20:46:38 -06:00

View File

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