Created
June 18, 2025 07:37
-
-
Save msh31/c48d27c5cdcab1d529405d8ec44d9649 to your computer and use it in GitHub Desktop.
Auto-updater for Discord on Debian based distros
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
| #!/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