fix: make verify permission error

Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
pull/7003/head
Mateus Oliveira 2023-10-23 10:07:14 -03:00
parent 30bf6bd28c
commit cbf849ab4c
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ HACK_DIR=$(dirname "${BASH_SOURCE}")
${HACK_DIR}/update-3generated-crd-code.sh
# ensure no changes to generated CRDs
if [! git diff --exit-code config/crd/v1/crds/crds.go config/crd/v2alpha1/crds/crds.go >/dev/null]; then
if ! git diff --exit-code config/crd/v1/crds/crds.go config/crd/v2alpha1/crds/crds.go &> /dev/null; then
# revert changes to state before running CRD generation to stay consistent
# with code-generator `--verify-only` option which discards generated changes
git checkout config/crd