Created
November 30, 2023 23:57
-
-
Save itbrunoms/55753fd7bf4bfa263f69f8c623ae7144 to your computer and use it in GitHub Desktop.
instalar-toolbox-jetbrains.sh
This file contains hidden or 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
#!/bin/bash | |
set -e | |
if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
echo "JetBrains Toolbox já esta instalado" | |
exit 0 | |
fi | |
echo "Iniciar instalação" | |
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 foi instalado com sucesso" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment