Skip to content

Instantly share code, notes, and snippets.

@jeremy-wolfe
Last active March 10, 2020 13:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jeremy-wolfe/ff807eb4992c8b1184052c5a93bb5c3b to your computer and use it in GitHub Desktop.
Save jeremy-wolfe/ff807eb4992c8b1184052c5a93bb5c3b to your computer and use it in GitHub Desktop.
ProtonMail Bridge Updater for Arch Linux
#!/bin/bash
# Should work with your favorite hash algorithm (md5sum, sha256sum, etc.)
hash=md5sum
old="$($hash PKGBUILD)"
wget -O PKGBUILD https://protonmail.com/download/beta/PKGBUILD
new="$($hash PKGBUILD)"
[ "$old" = "$new" ] && echo "Up to date." || makepkg -si
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment