From f805e8a0f5ea2b826308a02399165cfd17f44f89 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Fri, 24 Feb 2023 20:51:28 +0100 Subject: [PATCH] fix: install script --- .github/scripts/install_test_binaries.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/install_test_binaries.sh b/.github/scripts/install_test_binaries.sh index 8c0634cd..4e418f79 100755 --- a/.github/scripts/install_test_binaries.sh +++ b/.github/scripts/install_test_binaries.sh @@ -6,7 +6,6 @@ GETH_BUILD=${GETH_BUILD:-"1.11.2-73b01f40"} SOLC_VERSION=${SOLC_VERSION:-"0.8.19"} DIR="$HOME/bin" -# DIR="$HOME/github/danipopes/ethers-rs/test_bin" mkdir -p "$DIR" cd "$DIR" export PATH="$DIR:$PATH" @@ -15,7 +14,8 @@ echo "Installing Geth" PLATFORM="$(uname -s)" case "$PLATFORM" in Linux|Darwin) - GETH_ARCHIVE_NAME="geth-${PLATFORM,,}-amd64-$GETH_BUILD" + platform="$(echo "$PLATFORM" | awk "{print tolower($0)}")" + 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"