-
-
Save cybniv/8d903e986a253f0a14a9c4478fc5d22f 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