Explorar o código

scripts/release: fix version check commands

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Gyuho Lee %!s(int64=7) %!d(string=hai) anos
pai
achega
9c1d2eaee4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      scripts/release

+ 2 - 2
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