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:
AkiraFukushima 2020-11-07 00:05:38 +09:00
parent d13ae5ab36
commit 51aadf1cbc
1 changed files with 1 additions and 1 deletions

View File

@ -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