mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-16 09:18:06 -05:00
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 sligthly different then on linux
```
$ # on linux
$ echo -n | wc -l
0
$ # on mac
$ echo -n | wc -l
0
```
This commit is contained in:
parent
539165d899
commit
93f737eae6
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
|||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
|
||||
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 "BUILD files are not up to date"
|
||||
echo "Run ./hack/update-bazel.sh"
|
||||
|
|
|
|||
Loading…
Reference in a new issue