Change pushd $d; go ...; popd to go -C $d ...
Just an annoyance in reading these scripts.
This commit is contained in:
@@ -48,10 +48,8 @@ export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
|
||||
export GO111MODULE=off
|
||||
|
||||
# Install tools we need
|
||||
pushd "${KUBE_ROOT}/hack/tools" >/dev/null
|
||||
GO111MODULE=on go install github.com/cespare/prettybench
|
||||
GO111MODULE=on go install gotest.tools/gotestsum
|
||||
popd >/dev/null
|
||||
GO111MODULE=on go -C "${KUBE_ROOT}/hack/tools" install github.com/cespare/prettybench
|
||||
GO111MODULE=on go -C "${KUBE_ROOT}/hack/tools" install gotest.tools/gotestsum
|
||||
|
||||
# Disable the Go race detector.
|
||||
export KUBE_RACE=" "
|
||||
|
||||
@@ -32,9 +32,7 @@ export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
|
||||
export GO111MODULE=off
|
||||
|
||||
# Install tools we need
|
||||
pushd "./hack/tools" >/dev/null
|
||||
GO111MODULE=on go install gotest.tools/gotestsum
|
||||
popd >/dev/null
|
||||
GO111MODULE=on go -C "./hack/tools" install gotest.tools/gotestsum
|
||||
|
||||
# Disable coverage report
|
||||
export KUBE_COVER="n"
|
||||
|
||||
Reference in New Issue
Block a user