27 lines
573 B
Bash
Executable File
27 lines
573 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd /opt/
|
|
|
|
## Extract the package
|
|
sudo tar xf /opt/ideaIU-*
|
|
|
|
## Rename the directory
|
|
sudo mv /opt/idea-IU-* /opt/intellij-idea-ultimate
|
|
|
|
## Remove the tar.gz package
|
|
sudo rm /opt/ideaIU-*
|
|
|
|
## Install the .desktop file, if necessary
|
|
if [ -x "/usr/bin/desktop-file-install" ]; then
|
|
sudo desktop-file-install /usr/share/applications/intellij-idea-ultimate.desktop
|
|
fi
|
|
|
|
## Automatically added by dh_icons
|
|
if which update-icon-caches >/dev/null 2>&1 ; then
|
|
update-icon-caches /usr/share/icons/intellij-idea-ue.png
|
|
fi
|
|
# End automatically added section
|
|
#
|