Skip to content

Commit e698682

Browse files
committed
change a way to pass SC2164 in etcd.sh
1 parent c215966 commit e698682

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

hack/lib/etcd.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616

1717
# A set of helpers for starting/running etcd for tests
1818

19-
set -o errexit
20-
set -o nounset
21-
set -o pipefail
22-
2319
ETCD_VERSION=${ETCD_VERSION:-3.3.10}
2420
ETCD_HOST=${ETCD_HOST:-127.0.0.1}
2521
ETCD_PORT=${ETCD_PORT:-2379}
@@ -114,7 +110,7 @@ kube::etcd::install() {
114110
os=$(kube::util::host_os)
115111
arch=$(kube::util::host_arch)
116112

117-
cd "${KUBE_ROOT}/third_party"
113+
cd "${KUBE_ROOT}/third_party" || return 1
118114
if [[ $(readlink etcd) == etcd-v${ETCD_VERSION}-${os}-* ]]; then
119115
kube::log::info "etcd v${ETCD_VERSION} already installed at path:"
120116
kube::log::info "$(pwd)/$(readlink etcd)"

0 commit comments

Comments
 (0)