Created
December 5, 2020 04:29
-
-
Save triangletodd/e529d3b1a64db6d1cb5a4f18d48bd3af to your computer and use it in GitHub Desktop.
Update Discord on Debian
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
#!/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