debian-scripts/update-discord.sh
2024-04-25 19:58:18 -05:00

16 lines
330 B
Bash
Executable file

#!/bin/sh
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run by root' >&2
exit 1
fi
# Retrieve discord tar.gz file
wget "https://discord.com/api/download?platform=linux&format=tar.gz" -O discord.tar.gz
# Extract files to /opt directory
tar -xvf discord.tar.gz -C /opt/Discord
rm -rf discord.tar.gz