Updated log message to correct it and removed un-necessary sudo before desktop-file-install
This commit is contained in:
parent
47fbc1cb8a
commit
fc82020be3
@ -200,8 +200,8 @@ esac
|
|||||||
|
|
||||||
## If discord isn't already setup in your global applications, go ahead and install the desktop file
|
## 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
|
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"
|
log "Desktop file not found in the global applications dir ($LOCAL_APPLICATION_DIR) installing now"
|
||||||
sudo desktop-file-install --dir=$LOCAL_APPLICATION_DIR $DESKTOP_FILE
|
desktop-file-install --dir=$LOCAL_APPLICATION_DIR $DESKTOP_FILE
|
||||||
|
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
log "There was an issue with installtion"
|
log "There was an issue with installtion"
|
||||||
|
Loading…
Reference in New Issue
Block a user