From c193ab546d018f32621ab8d1c49abe98cc9a387c Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 1 Oct 2021 18:05:49 +0000 Subject: [PATCH] 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 --- intellij-idea-ultimate_2021.2.2/debian/postinst | 8 ++++---- intellij-idea-ultimate_2021.2.2/debian/postrm | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/intellij-idea-ultimate_2021.2.2/debian/postinst b/intellij-idea-ultimate_2021.2.2/debian/postinst index bdc49f1..f342a45 100644 --- a/intellij-idea-ultimate_2021.2.2/debian/postinst +++ b/intellij-idea-ultimate_2021.2.2/debian/postinst @@ -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## diff --git a/intellij-idea-ultimate_2021.2.2/debian/postrm b/intellij-idea-ultimate_2021.2.2/debian/postrm index e410691..ce81075 100644 --- a/intellij-idea-ultimate_2021.2.2/debian/postrm +++ b/intellij-idea-ultimate_2021.2.2/debian/postrm @@ -3,6 +3,6 @@ set -e ## Remove the program folder -sudo rm -rf /opt/intellij-idea-ultimate +rm -rf /opt/intellij-idea-ultimate ##DEBHELPER##