#!/bin/bash

usuario=$(./app/utils/UsuarioLogado.sh)

wget https://download-cf.jetbrains.com/webstorm/WebStorm-2017.1.1.tar.gz -O /home/$usuario/Downloads/WebStorm-2017.1.1.tar.gz

sudo tar xf /home/$usuario/Downloads/WebStorm-2017.1.1.tar.gz -C /opt/

sudo rm /home/$usuario/Downloads/WebStorm-2017.1.1.tar.gz

cd /opt/WebStorm-171.4073.40/bin/

sudo chmod +x ./webstorm.sh

sudo chmod 777 /opt/WebStorm-171.4073.40 -R

sudo -H -u $usuario bash -c "./webstorm.sh"
#!/bin/bash

usuario=$(./app/utils/UsuarioLogado.sh)

sudo rm /opt/WebStorm* -R

wget https://download-cf.jetbrains.com/webstorm/WebStorm-2017.1.4.tar.gz -O /home/$usuario/Downloads/WebStorm-2017.1.4.tar.gz

sudo tar xf /home/$usuario/Downloads/WebStorm-2017.1.4.tar.gz -C /opt/

sudo rm /home/$usuario/Downloads/WebStorm-2017.1.4.tar.gz

cd /opt/WebStorm-171.4694.29/bin/

sudo chmod +x ./webstorm.sh

sudo chmod 777 /opt/WebStorm-171.4694.29 -R

sudo -H -u $usuario bash -c "./webstorm.sh"
Revert "Revert "Atualizando script de instalação do WebStorm""
Revert "Revert "Atualizando script de instalação do WebStorm""

This reverts commit 44c9e3305901ac2394747cbf539bb107b73649f9.
