mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
avoid ls'ing third_party/etcd
third_party/etcd isn't guaranteed to be present, this was causing the script to fail prior to printing out the error message about version mismatch fixes #41989
This commit is contained in:
parent
f1182ddc27
commit
57170100a0
@ -40,7 +40,6 @@ kube::etcd::validate() {
|
||||
export PATH=$KUBE_ROOT/third_party/etcd:$PATH
|
||||
hash etcd
|
||||
echo $PATH
|
||||
ls $KUBE_ROOT/third_party/etcd
|
||||
version=$(etcd --version | head -n 1 | cut -d " " -f 3)
|
||||
if [[ "${version}" < "${ETCD_VERSION}" ]]; then
|
||||
kube::log::usage "etcd version ${ETCD_VERSION} or greater required."
|
||||
|
Loading…
Reference in New Issue
Block a user