diff options
Diffstat (limited to 'bash/bashrc.d/gpg.bash')
-rw-r--r-- | bash/bashrc.d/gpg.bash | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bash/bashrc.d/gpg.bash b/bash/bashrc.d/gpg.bash index 446475dc..28c5b722 100644 --- a/bash/bashrc.d/gpg.bash +++ b/bash/bashrc.d/gpg.bash @@ -1,15 +1,12 @@ # Wrapper around gpg(1) to stop ``--batch'' breaking things gpg() { - local argstring - argstring=$* - case $argstring in + # shellcheck disable=SC2048 + case $* in *--ed*|*--gen-k*|*--sign-k*) - command gpg --no-batch "$@" - ;; - *) - command gpg "$@" + set -- --no-batch "$@" ;; esac + command gpg "$@" } # Completion for gpg with long options |