Skip to content

Instantly share code, notes, and snippets.

@lordhasyim
Forked from olivertappin/update-phpstorm.sh
Created December 12, 2022 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lordhasyim/7004256c4114205d65111b92840a20b1 to your computer and use it in GitHub Desktop.
Save lordhasyim/7004256c4114205d65111b92840a20b1 to your computer and use it in GitHub Desktop.
Download and install the latest version of PhpStorm for Ubunti
#!/bin/bash
if [ "$(whoami)" != "root" ]
then
echo "Sorry, you are not root."
exit 1
fi
echo "Downloading the latest PhpStorm to /tmp"
cd /tmp
curl -Lo PhpStorm.tar.gz "https://data.services.jetbrains.com/products/download?code=PS&platform=linux"
tar -xzf /tmp/PhpStorm.tar.gz
rm /tmp/PhpStorm.tar.gz
echo "Removing old PhpStorm"
rm -rf /opt/phpstorm
echo "Copying new PhpStorm"
mv /tmp/PhpStorm* /opt/phpstorm
echo "New PhpStorm has been installed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment