mirror of https://github.com/kubernetes/kops.git
Fix to handle exit code of gazelle command in hack/verify-bazel.sh
When some diff are detected in gazelle, the command exit(1), so verify-bazel.sh exit without any messages
This commit is contained in:
parent
d13ae5ab36
commit
51aadf1cbc
|
@ -24,7 +24,7 @@ gazelle_diff=$("${TOOLS_BIN}/gazelle" fix \
|
|||
-exclude=tests/e2e \
|
||||
-mode=diff \
|
||||
-proto=disable \
|
||||
-repo_root="${KOPS_ROOT}")
|
||||
-repo_root="${KOPS_ROOT}") || _=$?
|
||||
|
||||
if [[ -n "${gazelle_diff}" ]]; then
|
||||
echo "${gazelle_diff}" >&2
|
||||
|
|
Loading…
Reference in New Issue