mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Improved some more bash script variable definitions
This commit is contained in:
@@ -48,9 +48,9 @@ kube::etcd::validate() {
|
||||
# validate installed version is at least equal to minimum
|
||||
version=$(etcd --version | tail -n +1 | head -n 1 | cut -d " " -f 3)
|
||||
if [[ $(kube::etcd::version ${ETCD_VERSION}) -gt $(kube::etcd::version ${version}) ]]; then
|
||||
export PATH=${KUBE_ROOT}/third_party/etcd:$PATH
|
||||
export PATH=${KUBE_ROOT}/third_party/etcd:${PATH}
|
||||
hash etcd
|
||||
echo $PATH
|
||||
echo "${PATH}"
|
||||
version=$(etcd --version | head -n 1 | cut -d " " -f 3)
|
||||
if [[ $(kube::etcd::version ${ETCD_VERSION}) -gt $(kube::etcd::version ${version}) ]]; then
|
||||
kube::log::usage "etcd version ${ETCD_VERSION} or greater required."
|
||||
|
Reference in New Issue
Block a user