From c53d76d535086ae3ed791f47a6080f8afc344810 Mon Sep 17 00:00:00 2001 From: bruceauyeung Date: Wed, 26 Sep 2018 14:57:26 +0800 Subject: [PATCH] log useful information instead of silent exit without error when etcd has already been installed --- hack/lib/etcd.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hack/lib/etcd.sh b/hack/lib/etcd.sh index e807e199e9d..91855eb7c9b 100755 --- a/hack/lib/etcd.sh +++ b/hack/lib/etcd.sh @@ -108,6 +108,8 @@ kube::etcd::install() { cd "${KUBE_ROOT}/third_party" os=$(uname | tr "[:upper:]" "[:lower:]") 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)" return # already installed fi if [[ ${os} == "darwin" ]]; then