Skip to content

Instantly share code, notes, and snippets.

@vozhukh
Last active December 1, 2016 09:43
Show Gist options
  • Save vozhukh/bd7dc9ae3e55042d1273032f6e5fc599 to your computer and use it in GitHub Desktop.
Save vozhukh/bd7dc9ae3e55042d1273032f6e5fc599 to your computer and use it in GitHub Desktop.
#!/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 https://download-cf.jetbrains.com/webide/PhpStorm-2016.3.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