From 7a88c65c1613a469f4963b6b1db44df16beca077 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:09:39 +0100 Subject: [PATCH] update script --- .github/scripts/install_test_binaries.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/scripts/install_test_binaries.sh b/.github/scripts/install_test_binaries.sh index 52f29c35..d66f281a 100755 --- a/.github/scripts/install_test_binaries.sh +++ b/.github/scripts/install_test_binaries.sh @@ -11,11 +11,10 @@ cd "$DIR" export PATH="$DIR:$PATH" echo "Installing Geth" -PLATFORM="$(uname -s)" +PLATFORM="$(uname -s | awk '{print tolower($0)}')" case "$PLATFORM" in - Linux|Darwin) - platform="$(echo "$PLATFORM" | awk '{print tolower($0)}')" - GETH_ARCHIVE_NAME="geth-$platform-amd64-$GETH_BUILD" + linux|darwin) + GETH_ARCHIVE_NAME="geth-$PLATFORM-amd64-$GETH_BUILD" curl "https://gethstore.blob.core.windows.net/builds/$GETH_ARCHIVE_NAME.tar.gz" | tar -xzvf - mv -f "$GETH_ARCHIVE_NAME/geth" ./ rm -rf "$GETH_ARCHIVE_NAME"