Remove useless executions of commands with sudo
The installation process already runs with root privileges. Fixes issue #4
This commit is contained in:
parent
00e8e0ca30
commit
51d6995f33
2 changed files with 5 additions and 5 deletions
|
@ -5,17 +5,17 @@ set -e
|
||||||
cd /opt/
|
cd /opt/
|
||||||
|
|
||||||
## Extract the package
|
## 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
|
## 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
|
## 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
|
## 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-community.desktop
|
desktop-file-install /usr/share/applications/intellij-idea-community.desktop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##DEBHELPER##
|
##DEBHELPER##
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
## Remove the program folder
|
## Remove the program folder
|
||||||
sudo rm -rf /opt/intellij-idea-community
|
rm -rf /opt/intellij-idea-community
|
||||||
|
|
||||||
##DEBHELPER##
|
##DEBHELPER##
|
||||||
|
|
Loading…
Reference in a new issue