Created
August 26, 2019 14:59
-
-
Save ssledz/4af248ea31a86038c9992b20033b8bef to your computer and use it in GitHub Desktop.
Revisions
-
atais created this gist
Jun 29, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash IDEA=`tar -tzf $1 | head -1 | cut -f1 -d"/"` sudo tar -xf $1 -C /opt/ sudo chown $(whoami):$(whoami) /opt/$IDEA -R sudo rm /opt/idea-IU sudo ln -s /opt/$IDEA /opt/idea-IU sudo chown $(whoami):$(whoami) /opt/idea-IU