Rainbond/hack/k8s/codegen/verify-generated.sh

15 lines
265 B
Bash
Raw Permalink Normal View History

2021-04-14 20:17:40 +08:00
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
if ! output=$(./hack/k8s/codegen/update-generated.sh --verify-only 2>&1); then
echo "FAILURE: verification of codegen failed:"
echo "${output}"
exit 1
fi
echo "Verified generated code ==="