]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Declare more variables as local at zsh completion
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 27 Sep 2013 22:34:22 +0000 (19:34 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 27 Sep 2013 22:34:22 +0000 (19:34 -0300)
lib/keyringer/completions/zsh/_keyringer

index ec7f655b1889854cc82a2fe624aac96f1f4b77bc..6f2699387340046566ff246fde5873103956fc87 100644 (file)
@@ -21,7 +21,7 @@ _keyringer() {
     # Process config
     local keyrings="`ls --color=never $config | sed -e 's/config//'`"
     source $config/config
-    keyring_path="`eval echo '$'$words[2]`"
+    local keyring_path="`eval echo '$'$words[2]`"
 
     _arguments        \
       '1: :->keyring' \