Skip to content

Instantly share code, notes, and snippets.

@gvieira18
Created March 25, 2025 20:32
Show Gist options
  • Save gvieira18/ef2d8d1b3a7af2890442e3f3b2254f2f to your computer and use it in GitHub Desktop.
Save gvieira18/ef2d8d1b3a7af2890442e3f3b2254f2f to your computer and use it in GitHub Desktop.
Update discord
update_discord() {
echo "Downloading and installing the latest Discord (stable)..."
curl -L "https://discord.com/api/download/stable?platform=linux&format=deb" -o /tmp/discord.deb
if sudo apt install -y /tmp/discord.deb; then
echo "Discord has been updated successfully!"
else
echo "Failed to install Discord. Trying to fix dependencies..."
sudo apt-get install -f
fi
rm -f /tmp/discord.deb
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment