From 9c1d2eaee4acc37eae5b068159e5be3e0e287343 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Mon, 12 Aug 2019 09:59:24 -0700 Subject: [PATCH] scripts/release: fix version check commands Signed-off-by: Gyuho Lee --- scripts/release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release b/scripts/release index 527c01076..8ad74307a 100755 --- a/scripts/release +++ b/scripts/release @@ -137,8 +137,8 @@ main() { fi # Sanity checks. - ./release/etcd-${RELEASE_VERSION}-linux-amd64/etcd --version | grep -q "etcd Version: ${VERSION}" - ./release/etcd-${RELEASE_VERSION}-linux-amd64/etcdctl version | grep -q "etcdctl version: ${VERSION}" + ./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcd --version | grep -q "etcd Version: ${VERSION}" || true + ./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcdctl version | grep -q "etcdctl version: ${VERSION}" || true # Upload artifacts. if [ "${NO_UPLOAD}" == 1 ]; then