Last active
February 6, 2021 07:29
-
-
Save typomedia/27d0406d054defe7ae8d08948daea77c to your computer and use it in GitHub Desktop.
JetBrains PhpStorm Updater
This file contains 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 | |
# Copyright 2021 Typomedia Foundation. All rights reserved. | |
# Released under GPL version 3. | |
# | |
# JetBrains PhpStorm Installer/Updater | |
url="https://download.jetbrains.com/product?code=PS&latest&distribution=linux" | |
dst="/opt/JetBrains/PhpStorm" | |
sudo rm -rf $dst && sudo mkdir -p $dst | |
sudo curl -LsS $url | sudo tar xvz -C $dst --strip 1 | |
# enable special chars | |
sudo sed -i -e 's/message()/XMODIFIERS=phpstorm.sh\nexport XMODIFIERS\n\nmessage()/g' $dst/bin/phpstorm.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment