Skip to content

Instantly share code, notes, and snippets.

@Ishidres
Last active March 23, 2019 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ishidres/54ae365d8817e892ad52082a304bad84 to your computer and use it in GitHub Desktop.
Save Ishidres/54ae365d8817e892ad52082a304bad84 to your computer and use it in GitHub Desktop.
Automatically updates Discord by downloading the latest version and replacing the currently installed version with it.
notify-send "Updating Discord..."
# terminate Discord if it's currently running
pkill Discord*
wget "https://discordapp.com/api/download?platform=linux&format=tar.gz"
# remove currently installed version of Discord and replace it with the new downloaded one
rm -r Discord
tar -xf "download?platform=linux&format=tar.gz"
rm "download?platform=linux&format=tar.gz"
notify-send "Updating Discord to latest version has finished."
# make Discord exectuable and run it
cd ./Discord;
chmod +x Discord
./Discord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment