Skip to content

Instantly share code, notes, and snippets.

@furdarius
Last active August 3, 2018 04:50
Show Gist options
  • Save furdarius/ca6b9dc99130d6989c6cc1cfc98a3bfe to your computer and use it in GitHub Desktop.
Save furdarius/ca6b9dc99130d6989c6cc1cfc98a3bfe to your computer and use it in GitHub Desktop.
Update EAP PhpStorm
#!/bin/bash -e
# IMPORTANT. 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 ~/Downloads"
cd ~/Downloads
wget ${url} --no-check-certificate
tar -xzf ~/Downloads/PhpStorm*.tar.gz
rm -rf ~/Downloads/PhpStorm*.tar.gz
# Remove old Phpstorm
echo "Removing old PhpStorm"
rm -rf /opt/phpstorm
# Copy new Phpstorm
echo "Copying new PhpStorm"
mv ~/Downloads/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