blob: e249337328e192bb8e10521de77563f13ffe888e (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
if grep -q 'BEGIN PGP PUBLIC KEY BLOCK' "$1"; then
cat "$1"
else
echo "# GPG file SHA256 checksum: $(sha256sum - <"$1" | cut -d\ -f1)"
gpg --batch --decrypt 2>&1 "$1"
fi
|