Merge pull request #19325 from gangli113/downgradetest

fix test.sh to download correct binary for mac os
This commit is contained in:
Benjamin Wang
2025-02-04 07:50:02 +00:00
committed by GitHub

View File

@ -576,7 +576,13 @@ function release_pass {
log_warning "fallback to" ${UPGRADE_VER}
fi
local file="etcd-$UPGRADE_VER-linux-$GOARCH.tar.gz"
local file
if [[ "$(uname -s)" == 'Darwin' ]]; then
file="etcd-$UPGRADE_VER-darwin-$GOARCH.zip"
else
file="etcd-$UPGRADE_VER-linux-$GOARCH.tar.gz"
fi
log_callout "Downloading $file"
set +e