Skip to content

Instantly share code, notes, and snippets.

@IanSapp128
Created July 11, 2024 00:18
Show Gist options
  • Save IanSapp128/eac3dc39793584a7a0e9eb03e392fd37 to your computer and use it in GitHub Desktop.
Save IanSapp128/eac3dc39793584a7a0e9eb03e392fd37 to your computer and use it in GitHub Desktop.
Bash script to remove the Discord folder and replace it with the latest version from their official server.
#!/usr/bin/env bash
rm -r Discord
wget "https://discord.com/api/download/stable?platform=linux&format=tar.gz" -O discord.tar.gz
tar -xvf discord.tar.gz -C .
rm discord.tar.gz
@IanSapp128
Copy link
Author

Drop this script anywhere and give it a run. It'll download the latest tar from the Discord server and unpack it into a folder called Discord. If you already have a Discord folder, it will delete it, download the tar, and replace it with the latest version. The .tar is also removed once the folder is created 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment