From 51d6995f338f06939a4c41d2fcd3c9af16887c31 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 1 Oct 2021 18:00:01 +0000 Subject: [PATCH] Remove useless executions of commands with sudo The installation process already runs with root privileges. Fixes issue #4 --- intellij-idea-community_2021.2.2/debian/postinst | 8 ++++---- intellij-idea-community_2021.2.2/debian/postrm | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/intellij-idea-community_2021.2.2/debian/postinst b/intellij-idea-community_2021.2.2/debian/postinst index f409fab..b229198 100644 --- a/intellij-idea-community_2021.2.2/debian/postinst +++ b/intellij-idea-community_2021.2.2/debian/postinst @@ -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## diff --git a/intellij-idea-community_2021.2.2/debian/postrm b/intellij-idea-community_2021.2.2/debian/postrm index dd6e2c4..f84214e 100644 --- a/intellij-idea-community_2021.2.2/debian/postrm +++ b/intellij-idea-community_2021.2.2/debian/postrm @@ -3,6 +3,6 @@ set -e ## Remove the program folder -sudo rm -rf /opt/intellij-idea-community +rm -rf /opt/intellij-idea-community ##DEBHELPER##