From e698682a0e610b6d94367f870c13ecd795cce631 Mon Sep 17 00:00:00 2001 From: danielqsj Date: Sun, 24 Feb 2019 20:12:53 +0800 Subject: [PATCH] change a way to pass SC2164 in etcd.sh --- hack/lib/etcd.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hack/lib/etcd.sh b/hack/lib/etcd.sh index 97b1ace0c59..79821e7d9d7 100755 --- a/hack/lib/etcd.sh +++ b/hack/lib/etcd.sh @@ -16,10 +16,6 @@ # A set of helpers for starting/running etcd for tests -set -o errexit -set -o nounset -set -o pipefail - ETCD_VERSION=${ETCD_VERSION:-3.3.10} ETCD_HOST=${ETCD_HOST:-127.0.0.1} ETCD_PORT=${ETCD_PORT:-2379} @@ -114,7 +110,7 @@ kube::etcd::install() { os=$(kube::util::host_os) arch=$(kube::util::host_arch) - cd "${KUBE_ROOT}/third_party" + cd "${KUBE_ROOT}/third_party" || return 1 if [[ $(readlink etcd) == etcd-v${ETCD_VERSION}-${os}-* ]]; then kube::log::info "etcd v${ETCD_VERSION} already installed at path:" kube::log::info "$(pwd)/$(readlink etcd)"