Commit f8287029 authored by aaa's avatar aaa

Fix shellcheck failures in godep-save.sh and godep-restore.sh

update pull request update pull request
parent b1829dff
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
./cluster/validate-cluster.sh ./cluster/validate-cluster.sh
./hack/cherry_pick_pull.sh ./hack/cherry_pick_pull.sh
./hack/ginkgo-e2e.sh ./hack/ginkgo-e2e.sh
./hack/godep-restore.sh
./hack/godep-save.sh
./hack/grab-profiles.sh ./hack/grab-profiles.sh
./hack/jenkins/benchmark-dockerized.sh ./hack/jenkins/benchmark-dockerized.sh
./hack/jenkins/build.sh ./hack/jenkins/build.sh
......
...@@ -18,7 +18,7 @@ set -o errexit ...@@ -18,7 +18,7 @@ set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${KUBE_ROOT}/hack/lib/init.sh" source "${KUBE_ROOT}/hack/lib/init.sh"
kube::log::status "Restoring kubernetes godeps" kube::log::status "Restoring kubernetes godeps"
......
...@@ -18,7 +18,7 @@ set -o errexit ...@@ -18,7 +18,7 @@ set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${KUBE_ROOT}/hack/lib/init.sh" source "${KUBE_ROOT}/hack/lib/init.sh"
kube::log::status "Ensuring prereqs" kube::log::status "Ensuring prereqs"
...@@ -88,11 +88,12 @@ kube::log::status "Running godep save - this might take a while" ...@@ -88,11 +88,12 @@ kube::log::status "Running godep save - this might take a while"
# This uses $(pwd) rather than ${KUBE_ROOT} because KUBE_ROOT will be # This uses $(pwd) rather than ${KUBE_ROOT} because KUBE_ROOT will be
# realpath'ed, and godep barfs ("... is not using a known version control # realpath'ed, and godep barfs ("... is not using a known version control
# system") on our staging dirs. # system") on our staging dirs.
GOPATH="${GOPATH}:$(pwd)/staging" ${KUBE_GODEP:?} save -i $(IFS=,; echo "${IGNORED_PACKAGES[*]}") "${REQUIRED_BINS[@]}" GOPATH="${GOPATH}:$(pwd)/staging" "${KUBE_GODEP:?}" save -i "$(IFS=,; echo "${IGNORED_PACKAGES[*]}")" "${REQUIRED_BINS[@]}"
# create a symlink in vendor directory pointing to the staging client. This # create a symlink in vendor directory pointing to the staging client. This
# let other packages use the staging client as if it were vendored. # let other packages use the staging client as if it were vendored.
for repo in $(ls staging/src/k8s.io); do for repo in staging/src/k8s.io/*; do
repo="${repo#staging/src/k8s.io/}"
if [ ! -e "vendor/k8s.io/${repo}" ]; then if [ ! -e "vendor/k8s.io/${repo}" ]; then
ln -s "../../staging/src/k8s.io/${repo}" "vendor/k8s.io/${repo}" ln -s "../../staging/src/k8s.io/${repo}" "vendor/k8s.io/${repo}"
fi fi
......
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