Last active
March 10, 2020 13:40
-
-
Save jeremy-wolfe/ff807eb4992c8b1184052c5a93bb5c3b to your computer and use it in GitHub Desktop.
ProtonMail Bridge Updater for Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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