Last active
June 6, 2016 11:45
-
-
Save andreasvirkus/b2dd4b96e4bc34398686867c25f5daa9 to your computer and use it in GitHub Desktop.
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 -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