Remove useless executions of commands with sudo

The installation process already runs with root privileges.

Fixes issue #4
This commit is contained in:
Marcel Kapfer 2021-10-01 18:00:01 +00:00
parent 00e8e0ca30
commit 51d6995f33
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/
## Extract the package
sudo tar xf /opt/ideaIC-2021.2.2.tar.gz
tar xf /opt/ideaIC-2021.2.2.tar.gz
## Rename the directory
sudo mv /opt/idea-IC-* /opt/intellij-idea-community
mv /opt/idea-IC-* /opt/intellij-idea-community
## Remove the tar.gz package
sudo rm /opt/ideaIC-2021.2.2.tar.gz
rm /opt/ideaIC-2021.2.2.tar.gz
## Install the .desktop file, if necessary
if [ -x "/usr/bin/desktop-file-install" ]; then
sudo desktop-file-install /usr/share/applications/intellij-idea-community.desktop
desktop-file-install /usr/share/applications/intellij-idea-community.desktop
fi
##DEBHELPER##

View file

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