Skip to content

Commit c056a46

Browse files
author
suigh
committed
update the output of install-etcd.sh, show how to export the environment of etcd.
1 parent 2524847 commit c056a46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hack/lib/etcd.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ kube::etcd::install() {
112112

113113
cd "${KUBE_ROOT}/third_party" || return 1
114114
if [[ $(readlink etcd) == etcd-v${ETCD_VERSION}-${os}-* ]]; then
115-
kube::log::info "etcd v${ETCD_VERSION} already installed at path:"
116-
kube::log::info "$(pwd)/$(readlink etcd)"
117-
return # already installed
115+
kube::log::info "etcd v${ETCD_VERSION} already installed. To use:"
116+
kube::log::info "export PATH=\"$(pwd)/etcd:\${PATH}\""
117+
return #already installed
118118
fi
119119

120120
if [[ ${os} == "darwin" ]]; then
@@ -133,6 +133,6 @@ kube::etcd::install() {
133133
rm "${download_file}"
134134
fi
135135
kube::log::info "etcd v${ETCD_VERSION} installed. To use:"
136-
kube::log::info "export PATH=$(pwd)/etcd:\${PATH}"
136+
kube::log::info "export PATH=\"$(pwd)/etcd:\${PATH}\""
137137
)
138138
}

0 commit comments

Comments
 (0)