Skip to content

Instantly share code, notes, and snippets.

View kjartanhr's full-sized avatar
👻
booing at bgp.tools

Kjartan Hrafnkelsson kjartanhr

👻
booing at bgp.tools
View GitHub Profile
@kjartanhr
kjartanhr / discord-updater.sh
Created August 14, 2024 16:03
automatically update discord on debian/ubuntu systems
#!/bin/bash
URL="https://discord.com/api/download?platform=linux&format=deb"
DL=$(curl -w "%{url_effective}" -I -L -s -S $URL -o /dev/null)
DEB=$(echo $DL | grep -o 'discord-.*\.deb$')
VER=$(echo $DEB | grep -o '[0-9]*\.[0-9]*\.[0-9]*')