Merge pull request #19325 from gangli113/downgradetest
fix test.sh to download correct binary for mac os
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user