From a4b17a9af86ab88cfe48e616284b56c1bdf019bd Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 29 Dec 2017 13:02:15 +1300 Subject: Remove --batch option and wrapper for gpg(1) This was originally added to cut the decryption boilerplate, which no longer seems to be an issue; I think that --quiet may be correctly blocking it now. Even without this, it caused more problems than it solved when gpg(1) genuinely did need user interaction from me, for example for --update-trustdb. --- sh/shrc.d/gpg.sh | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 sh/shrc.d/gpg.sh (limited to 'sh') diff --git a/sh/shrc.d/gpg.sh b/sh/shrc.d/gpg.sh deleted file mode 100644 index 62d123ea..00000000 --- a/sh/shrc.d/gpg.sh +++ /dev/null @@ -1,10 +0,0 @@ -# Wrapper around gpg(1) to stop ``--batch'' breaking things -gpg() { - # shellcheck disable=SC2048 - case $* in - *--ed*|*--gen-k*|*--sign-k*) - set -- --no-batch "$@" - ;; - esac - command gpg "$@" -} -- cgit v1.2.3