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:
parent
987662a7c4
commit
c193ab546d
2 changed files with 5 additions and 5 deletions
|
@ -5,17 +5,17 @@ set -e
|
|||
cd /opt/
|
||||
|
||||
## 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
|
||||
sudo mv /opt/idea-IU-* /opt/intellij-idea-ultimate
|
||||
mv /opt/idea-IU-* /opt/intellij-idea-ultimate
|
||||
|
||||
## 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
|
||||
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
|
||||
|
||||
##DEBHELPER##
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
set -e
|
||||
|
||||
## Remove the program folder
|
||||
sudo rm -rf /opt/intellij-idea-ultimate
|
||||
rm -rf /opt/intellij-idea-ultimate
|
||||
|
||||
##DEBHELPER##
|
||||
|
|
Loading…
Reference in a new issue