1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 20:35:11 +01:00
Files
dotfiles/bin/update_discord
2025-11-18 10:30:46 +01:00

11 lines
262 B
Bash
Executable File

#!/bin/bash
# Use a uniquely named, temporary directory to download to
TMPDIR=$(mktemp -d)
wget "https://discord.com/api/download?platform=linux&format=deb" -O "${TMPDIR}/discord.deb"
sudo dpkg -i "${TMPDIR}/discord.deb"
# Clean up
rm "${TMPDIR}/discord.deb"