Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Update Discord on Debian
#!/usr/bin/env bash
set -e
trap "{ rm -f $tmpfile; }" EXIT
tmpfile="$(mktemp)"
main() {
curl -Lo "$tmpfile" 'https://discord.com/api/download?platform=linux'
sudo dpkg -i "$tmpfile"
}
main "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment