From cf258b83aacb6b6fdf4b75bba69e9fbba9805905 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Mon, 3 Feb 2025 16:51:09 -0800 Subject: [PATCH] Squashed commit of the following: commit 1897d8af05b3627ac4374f1d2fb285fb7af5199e Author: Gang Li Date: Mon Feb 3 16:35:20 2025 -0800 use uname -s to get os name Signed-off-by: Gang Li commit 889dd974d5873b8c5e7ccd55732279146db1bcc3 Author: Gang Li Date: Mon Feb 3 11:34:13 2025 -0800 download correct binary for mac os Signed-off-by: Gang Li Signed-off-by: Gang Li --- scripts/test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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