From 89a63d086346422bab259dd19dfe617f97ef18e1 Mon Sep 17 00:00:00 2001 From: gen0cide- Date: Sun, 21 Aug 2016 17:13:52 -0700 Subject: [PATCH] Updating version check for etcd --- hack/lib/etcd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/lib/etcd.sh b/hack/lib/etcd.sh index 2c3ebebabd..b84aa89300 100644 --- a/hack/lib/etcd.sh +++ b/hack/lib/etcd.sh @@ -32,7 +32,7 @@ kube::etcd::start() { exit 1 fi - version=$(etcd -version | cut -d " " -f 3) + 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." kube::log::info "You can use 'hack/install-etcd.sh' to install a copy in third_party/."