From a8990e2e18d91284df971d488555a0c478100048 Mon Sep 17 00:00:00 2001 From: Joe Betz Date: Wed, 6 Jun 2018 10:48:00 -0700 Subject: [PATCH] scripts: Fix release script to always build etcd binary before checking version --- scripts/release | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release b/scripts/release index 53de28a0c..5d1a27f1a 100755 --- a/scripts/release +++ b/scripts/release @@ -87,10 +87,10 @@ main() { fi echo "Updating version from ${source_version} to ${VERSION} in version/version.go" sed -i "s/${source_version}/${VERSION}/g" version/version.go - echo "Building etcd with updated version" - ./build fi - + + echo "Building etcd and checking --version output" + ./build local etcd_version=$(bin/etcd --version | grep "etcd Version" | awk '{ print $3 }') if [[ "${etcd_version}" != "${VERSION}" ]]; then echo "Wrong etcd version in version/version.go. Expected ${etcd_version} but got ${VERSION}. Aborting."