Skip to content

Instantly share code, notes, and snippets.

@andreasvirkus
Last active June 6, 2016 11:45
Show Gist options
  • Save andreasvirkus/b2dd4b96e4bc34398686867c25f5daa9 to your computer and use it in GitHub Desktop.
Save andreasvirkus/b2dd4b96e4bc34398686867c25f5daa9 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
# Run with sudo!
echo -n "Please enter the PhpStorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
read url
# Download file from url
echo "Downloading PhpStorm to ~/Desktop"
cd ~/Desktop
wget ${url} --no-check-certificate
tar -xzf ~/Desktop/PhpStorm*
rm ~/Desktop/PhpStorm*tar.gz
# Remove old PhpStorm
echo "Removing old PhpStorm"
rm -rf /opt/phpstorm
# Move new PhpStorm
echo "Moving new PhpStorm"
mv ~/Desktop/PhpStorm* /opt/phpstorm
# Installed
echo "New PhpStorm has been installed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment