Skip to content

Instantly share code, notes, and snippets.

@wirtaw
Last active March 17, 2024 18:16
Show Gist options
  • Save wirtaw/dcec1cac650c7d6aab1f52e147246719 to your computer and use it in GitHub Desktop.
Save wirtaw/dcec1cac650c7d6aab1f52e147246719 to your computer and use it in GitHub Desktop.
Linux shell script to update Discord one-command line
#!/bin/bash
# Go to the
cd /tmp
# Download the latest Discord source archive
wget 'https://discord.com/api/download?platform=linux&format=tar.gz' -O discord.tar.gz
# Extract the Discord source archive
tar -xzf discord.tar.gz -C /tmp/
# Replace the existing Discord installation with the new one
cp -r /tmp/Discord/* /opt/discord
# Remove the old Discord source archive
rm /tmp/discord.tar.gz && rm -rf /tmp/Discord/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment