diff --git a/scripts/test.sh b/scripts/test.sh index 75447c80b..b7932bbad 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -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