update-discord 239 B

1234567
  1. #!/usr/bin/zsh
  2. url=`curl -I -L "https://discord.com/api/download?platform=linux&format=deb" 2>&1 | grep -i location | grep -oE "https.*deb"`
  3. if [ ! -e "/tmp/discord.deb" ]; then
  4. wget -O /tmp/discord.deb $url
  5. fi
  6. dpkg -iE /tmp/discord.deb