Skip to content

Instantly share code, notes, and snippets.

@msh31
Created June 18, 2025 07:37
Show Gist options
  • Select an option

  • Save msh31/c48d27c5cdcab1d529405d8ec44d9649 to your computer and use it in GitHub Desktop.

Select an option

Save msh31/c48d27c5cdcab1d529405d8ec44d9649 to your computer and use it in GitHub Desktop.
Auto-updater for Discord on Debian based distros
#!/usr/bin/env bash
set -e # exit if a command exists with non zero status
# Check if gdebi is installed, and install it if not
if ! command -v gdebi &> /dev/null
then
echo "gdebi not found. Installing gdebi..."
sudo apt update
sudo apt install -y gdebi-core
fi
wget -O discord.deb "https://discord.com/api/download?platform=linux&format=deb"
sudo gdebi -n ./discord.deb # download and install ^
rm -f discord.deb # cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment