diff options
author | Florian Pritz <bluewind@xinu.at> | 2024-10-14 21:34:04 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2024-10-14 21:54:03 +0200 |
commit | d5ffb01d87852eb74f6b17ae06ac0c476010065b (patch) | |
tree | 1ac6a86d874f30c968ba26bf0f8a5954fa0c67a6 /git-diff-gpg | |
parent | d10ee7703e20ef844907e90797ad66bf0fb984da (diff) | |
download | bin-d5ffb01d87852eb74f6b17ae06ac0c476010065b.tar.gz bin-d5ffb01d87852eb74f6b17ae06ac0c476010065b.tar.xz |
Add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'git-diff-gpg')
-rwxr-xr-x | git-diff-gpg | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/git-diff-gpg b/git-diff-gpg new file mode 100755 index 0000000..e249337 --- /dev/null +++ b/git-diff-gpg @@ -0,0 +1,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 |