install-ectd.sh: brace PATH and suggest user export

This commit is contained in:
Benjamin Elder 2025-03-12 14:16:08 -07:00
parent d798d86981
commit 8898868fea

View File

@ -27,4 +27,4 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
FOUND="$(echo "${PATH}" | sed 's/:/\n/g' | grep -q "^${KUBE_ROOT}/third_party/etcd$" || true)"
kube::etcd::install
test -n "${FOUND}" || echo " PATH=\"\$PATH:${KUBE_ROOT}/third_party/etcd\""
test -n "${FOUND}" || echo "export PATH=\"\${PATH}:${KUBE_ROOT}/third_party/etcd\""