update script
This commit is contained in:
parent
e06fcd4fd3
commit
7a88c65c16
|
@ -11,11 +11,10 @@ cd "$DIR"
|
||||||
export PATH="$DIR:$PATH"
|
export PATH="$DIR:$PATH"
|
||||||
|
|
||||||
echo "Installing Geth"
|
echo "Installing Geth"
|
||||||
PLATFORM="$(uname -s)"
|
PLATFORM="$(uname -s | awk '{print tolower($0)}')"
|
||||||
case "$PLATFORM" in
|
case "$PLATFORM" in
|
||||||
Linux|Darwin)
|
linux|darwin)
|
||||||
platform="$(echo "$PLATFORM" | awk '{print tolower($0)}')"
|
GETH_ARCHIVE_NAME="geth-$PLATFORM-amd64-$GETH_BUILD"
|
||||||
GETH_ARCHIVE_NAME="geth-$platform-amd64-$GETH_BUILD"
|
|
||||||
curl "https://gethstore.blob.core.windows.net/builds/$GETH_ARCHIVE_NAME.tar.gz" | tar -xzvf -
|
curl "https://gethstore.blob.core.windows.net/builds/$GETH_ARCHIVE_NAME.tar.gz" | tar -xzvf -
|
||||||
mv -f "$GETH_ARCHIVE_NAME/geth" ./
|
mv -f "$GETH_ARCHIVE_NAME/geth" ./
|
||||||
rm -rf "$GETH_ARCHIVE_NAME"
|
rm -rf "$GETH_ARCHIVE_NAME"
|
||||||
|
|
Loading…
Reference in New Issue