瀏覽代碼

scripts/release: fix version check commands

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Gyuho Lee 6 年之前
父節點
當前提交
af38185f92
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scripts/release

+ 2 - 2
scripts/release

@@ -136,8 +136,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