Last active
March 23, 2019 14:02
-
-
Save justF-2077/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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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