In demand


Thursday, January 28, 2016

PHPStorm for Linux Update Script

It's easy to get behind in updating PHPstorm for Linux when using the auto update on Ubuntu. This shell script is a useful tool for replacing the command line.

#!/bin/bash -e
# IMPORTANT. My phpstom installation exists on /opt/phpstorm.
# IMPORTANT. Run with sudo!
# Early Access program:

echo -n "Please enter the PhpStorm download url (eg "
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!"

Today's Links

Post a Comment

Print this!