From fc82020be33422b50e3ca38e956e2e1b4c3b8eac Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Fri, 1 Dec 2023 12:10:59 -0600 Subject: [PATCH] Updated log message to correct it and removed un-necessary sudo before desktop-file-install --- install-discord-linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-discord-linux.sh b/install-discord-linux.sh index 4c6e3ac..255fa0b 100755 --- a/install-discord-linux.sh +++ b/install-discord-linux.sh @@ -200,8 +200,8 @@ esac ## If discord isn't already setup in your global applications, go ahead and install the desktop file if [[ ! -f $LOCAL_APPLICATION_DIR/discord.desktop ]]; then - log "Desktop file not found in the global applications dir (/usr/share/applications) installing now, asking user for sudo access" - sudo desktop-file-install --dir=$LOCAL_APPLICATION_DIR $DESKTOP_FILE + log "Desktop file not found in the global applications dir ($LOCAL_APPLICATION_DIR) installing now" + desktop-file-install --dir=$LOCAL_APPLICATION_DIR $DESKTOP_FILE if [[ $? -ne 0 ]]; then log "There was an issue with installtion"