-
-
Save anderson-mota/506b455c9be4f4c1ea638a71c4ea5162 to your computer and use it in GitHub Desktop.
Update phpstorm on Ubuntu linux.
This file contains 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 | |
# IMPORTANT. My phpstom installation exists on /opt/phpstorm. | |
# IMPORTANT. Run with sudo! | |
# Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program | |
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* | |
# Remove old Phpstorm | |
echo "Removing old PhpStorm" | |
rm -rf /opt/phpstorm | |
# Copy new Phpstorm | |
echo "Copying new PhpStorm" | |
mv ~/Desktop/PhpStorm* /opt/phpstorm | |
# Finish | |
echo "New PhpStorm has been installed!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment