Skip to content

Instantly share code, notes, and snippets.

@triangletodd
Created December 5, 2020 04:29
Show Gist options
  • Save triangletodd/e529d3b1a64db6d1cb5a4f18d48bd3af to your computer and use it in GitHub Desktop.
Save triangletodd/e529d3b1a64db6d1cb5a4f18d48bd3af to your computer and use it in GitHub Desktop.
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