Remove useless executions of commands with sudo

The installation process already runs with root privileges.

See also https://gitlab.com/mmk2410/intellij-idea-community/-/issues/4
This commit is contained in:
Marcel Kapfer 2021-10-01 18:05:49 +00:00
parent 987662a7c4
commit c193ab546d
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
2 changed files with 5 additions and 5 deletions

View File

@ -5,17 +5,17 @@ set -e
cd /opt/ cd /opt/
## Extract the package ## Extract the package
sudo tar xf /opt/ideaIU-2021.2.2.tar.gz tar xf /opt/ideaIU-2021.2.2.tar.gz
## Rename the directory ## Rename the directory
sudo mv /opt/idea-IU-* /opt/intellij-idea-ultimate mv /opt/idea-IU-* /opt/intellij-idea-ultimate
## Remove the tar.gz package ## Remove the tar.gz package
sudo rm /opt/ideaIU-2021.2.2.tar.gz rm /opt/ideaIU-2021.2.2.tar.gz
## Install the .desktop file, if necessary ## Install the .desktop file, if necessary
if [ -x "/usr/bin/desktop-file-install" ]; then if [ -x "/usr/bin/desktop-file-install" ]; then
sudo desktop-file-install /usr/share/applications/intellij-idea-ultimate.desktop desktop-file-install /usr/share/applications/intellij-idea-ultimate.desktop
fi fi
##DEBHELPER## ##DEBHELPER##

View File

@ -3,6 +3,6 @@
set -e set -e
## Remove the program folder ## Remove the program folder
sudo rm -rf /opt/intellij-idea-ultimate rm -rf /opt/intellij-idea-ultimate
##DEBHELPER## ##DEBHELPER##