Created
December 26, 2019 16:13
-
-
Save antoniordo/32bb07c833aea22a142da81c85a9b3f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
URL_TOOLBOX_RELEASES='https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release' | |
JQ_DOWNLOAD_LINK_PATH='.TBA[0].downloads.linux.link' | |
TEMP_DOWNLOAD_DIRECTORY=$(mktemp -d) | |
DOWNLOAD_LINK=$(curl $URL_TOOLBOX_RELEASES | jq -r $JQ_DOWNLOAD_LINK_PATH) | |
curl -L "$DOWNLOAD_LINK" --output "$TEMP_DOWNLOAD_DIRECTORY/toolbox.tar.gz" | |
tar xf "$TEMP_DOWNLOAD_DIRECTORY/toolbox.tar.gz" -C "$TEMP_DOWNLOAD_DIRECTORY" | |
$TEMP_DOWNLOAD_DIRECTORY/jetbrains-toolbox*/jetbrains-toolbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment