diff options
Diffstat (limited to 't/lib-gpg.sh')
-rwxr-xr-x | t/lib-gpg.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/lib-gpg.sh b/t/lib-gpg.sh index 28463fb6f4..05824fa8e4 100755 --- a/t/lib-gpg.sh +++ b/t/lib-gpg.sh @@ -24,3 +24,11 @@ else ;; esac fi + +sanitize_pgp() { + perl -ne ' + /^-----END PGP/ and $in_pgp = 0; + print unless $in_pgp; + /^-----BEGIN PGP/ and $in_pgp = 1; + ' +} |