Created
March 25, 2025 20:32
-
-
Save gvieira18/ef2d8d1b3a7af2890442e3f3b2254f2f to your computer and use it in GitHub Desktop.
Update discord
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
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