mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
250 B
Plaintext
18 lines
250 B
Plaintext
9 months ago
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
file="discord.deb"
|
||
|
url="https://discord.com/api/download?platform=linux&format=deb"
|
||
|
|
||
|
dir="$(mktemp -d)"
|
||
|
path="$dir/$file"
|
||
|
|
||
|
cleanup () {
|
||
|
rm -rf "$dir"
|
||
|
}
|
||
|
trap cleanup EXIT
|
||
|
|
||
|
curl -L "$url" -o "$path"
|
||
|
sudo apt-get install -y "$path"
|
||
|
|