Last active
March 17, 2024 18:16
-
-
Save wirtaw/dcec1cac650c7d6aab1f52e147246719 to your computer and use it in GitHub Desktop.
Linux shell script to update Discord one-command line
This file contains 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
#!/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