Commit 695cbde8 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #36089 from mikedanese/fix-mac

Automatic merge from submit-queue fix verify-bazel.sh on mac and windows mac bash doesn't like |& because mac bash is really old. the formating of wc is also slightly different then on linux. ```console $ # on linux $ echo -n | wc -l 0 $ # on mac $ echo -n | wc -l 0 ```
parents c6028b54 93f737ea
...@@ -21,7 +21,7 @@ export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. ...@@ -21,7 +21,7 @@ export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh" source "${KUBE_ROOT}/hack/lib/init.sh"
go get -u github.com/mikedanese/gazel go get -u github.com/mikedanese/gazel
if [[ $("${GOPATH}/bin/gazel" -dry-run -root="$(kube::realpath ${KUBE_ROOT})" |& tee /dev/stderr | wc -l) != 0 ]]; then if [[ $("${GOPATH}/bin/gazel" -dry-run -root="$(kube::realpath ${KUBE_ROOT})" 2>&1 | tee /dev/stderr | wc -l | tr -d '[:space:]') != 0 ]]; then
echo echo
echo "BUILD files are not up to date" echo "BUILD files are not up to date"
echo "Run ./hack/update-bazel.sh" echo "Run ./hack/update-bazel.sh"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment