Skip to content

Instantly share code, notes, and snippets.

@hegemanjr
Forked from greeflas/install-toolbox.sh
Last active December 3, 2022 03:05
Show Gist options
  • Save hegemanjr/f6fca416da08f3f84b7552f3369fa12a to your computer and use it in GitHub Desktop.
Save hegemanjr/f6fca416da08f3f84b7552f3369fa12a to your computer and use it in GitHub Desktop.
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/

To install just run following command

Direct

curl https://gist.githubusercontent.com/hegemanjr/f6fca416da08f3f84b7552f3369fa12a/raw/install-toolbox.sh | bash

Shortened/Redirect

curl https://hegeman.link/deb-jetbrains | bash

#!/bin/bash
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "JetBrains Toolbox is already installed!"
exit 0
fi
echo "Start installation..."
wget --show-progress -qO ./toolbox.tar.gz "https://data.services.jetbrains.com/products/download?platform=linux&code=TBA"
TOOLBOX_TEMP_DIR=$(mktemp -d)
tar -C "$TOOLBOX_TEMP_DIR" -xf toolbox.tar.gz
rm ./toolbox.tar.gz
"$TOOLBOX_TEMP_DIR"/*/jetbrains-toolbox
rm -r "$TOOLBOX_TEMP_DIR"
echo "JetBrains Toolbox was successfully installed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment