jetbrains

This commit is contained in:
j3d1 2021-03-12 14:25:29 +01:00
parent 96da07dadb
commit d0db77c036

View file

@ -1,5 +1,19 @@
#!/bin/bash
function user_install(){
wget --show-progress -qO ./toolbox.tar.gz https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.20.7940.tar.gz
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"
}
function first_stage(){
set -e
@ -143,6 +157,9 @@ function second_stage(){
chown -R jedi:jedi $HOME
chsh --shell /bin/zsh jedi
export -f user_install
su jedi -c "bash -c user_install"
echo second_stage done
}