Updated log message to correct it and removed un-necessary sudo before desktop-file-install

This commit is contained in:
Tristan Ancelet 2023-12-01 12:10:59 -06:00
parent 47fbc1cb8a
commit fc82020be3

View File

@ -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"