Skip to content

Commit f980370

Browse files
authored
Merge pull request kubernetes#76608 from suigh/b1_etcd.sh
update the output of install-etcd.sh, show how to export the environment of etcd
2 parents 31903e6 + c056a46 commit f980370

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)