aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/gpg.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-06 14:54:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-06 14:54:33 +1200
commitfdfe1fe72f8fe358d2b64ddc9e1b58dda4d3ba90 (patch)
tree75374be5bee4e0f36f3020958fb99e8fb46e4385 /bash/bashrc.d/gpg.bash
parentAvoid command substitution inline declaration (diff)
downloaddotfiles-fdfe1fe72f8fe358d2b64ddc9e1b58dda4d3ba90.tar.gz
dotfiles-fdfe1fe72f8fe358d2b64ddc9e1b58dda4d3ba90.zip
Separate declaration from assignment
Diffstat (limited to 'bash/bashrc.d/gpg.bash')
-rw-r--r--bash/bashrc.d/gpg.bash6
1 files changed, 4 insertions, 2 deletions
diff --git a/bash/bashrc.d/gpg.bash b/bash/bashrc.d/gpg.bash
index c1221d84..83bda3d7 100644
--- a/bash/bashrc.d/gpg.bash
+++ b/bash/bashrc.d/gpg.bash
@@ -1,6 +1,7 @@
# Wrapper around gpg(1) to stop ``--batch'' breaking things
gpg() {
- local argstring=$*
+ local argstring
+ argstring=$*
case $argstring in
*--ed*|*--gen-k*|*--sign-k*)
command gpg --no-batch "$@"
@@ -13,7 +14,8 @@ gpg() {
# Completion for gpg with long options
_gpg() {
- local word=${COMP_WORDS[COMP_CWORD]}
+ local word
+ word=${COMP_WORDS[COMP_CWORD]}
# Bail if no gpg(1)
if ! hash gpg 2>/dev/null ; then