Skip to content

Instantly share code, notes, and snippets.

@cybniv
Forked from jeremy-wolfe/update.sh
Created September 1, 2019 09:06
Show Gist options
  • Save cybniv/8d903e986a253f0a14a9c4478fc5d22f to your computer and use it in GitHub Desktop.
Save cybniv/8d903e986a253f0a14a9c4478fc5d22f 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