Created
December 21, 2015 06:57
-
-
Save DarkaOnLine/233f8004e4db940a0ca6 to your computer and use it in GitHub Desktop.
PHPStorm EAP linux updater
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 | |
| # 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 --no-check-certificate -O phpstorm.tar.gz ${url} | |
| tar -xzvf ~/Desktop/phpstorm.tar.gz -C ~/Desktop/PhpStorm-EAP | |
| rm ~/Desktop/phpstorm.tar.gz | |
| # Remove old Phpstorm | |
| echo "Removing old PhpStorm" | |
| rm -rf /opt/PhpStorm-EAP | |
| # Copy new Phpstorm | |
| echo "Copying new PhpStorm" | |
| mv ~/Desktop/PhpStorm-EAP /opt/PhpStorm-EAP | |
| # 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