aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/completions/bash/keyringer
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-11-25 22:19:46 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-11-25 22:19:46 -0200
commit5c958eb741dd5c51495c48ef861ef03e107b18f1 (patch)
treec5bdf61aadbd70d0146afe39282b78ef232fd7e5 /lib/keyringer/completions/bash/keyringer
parent34c3eba0b22bc97bf3611294a3464c2d1510a007 (diff)
downloadkeyringer-5c958eb741dd5c51495c48ef861ef03e107b18f1.tar.gz
keyringer-5c958eb741dd5c51495c48ef861ef03e107b18f1.tar.bz2
Typo: 'trailing slash' was meant to be 'leading slash'
Diffstat (limited to 'lib/keyringer/completions/bash/keyringer')
-rw-r--r--lib/keyringer/completions/bash/keyringer6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/keyringer/completions/bash/keyringer b/lib/keyringer/completions/bash/keyringer
index 88c85cf..bbd49f5 100644
--- a/lib/keyringer/completions/bash/keyringer
+++ b/lib/keyringer/completions/bash/keyringer
@@ -95,7 +95,7 @@ _keyringer() {
opts="ls edit"
;;
ls|encrypt|encrypt-batch|decrypt|edit|append|append-batch|del|recrypt|open)
- cur="`echo ${cur} | sed -e "s|^/*||"`" # avoid trailing slash
+ cur="`echo ${cur} | sed -e "s|^/*||"`" # avoid leading slash
opts="$(bash -c "set -f && export KEYRINGER_CHECK_VERSION=false && keyringer $instance ls -p -d ${cur}*" 2> /dev/null)"
;;
genpair)
@@ -114,11 +114,11 @@ _keyringer() {
elif [ "${#COMP_WORDS[@]}" == "5" ]; then
case "${command}" in
recipients)
- cur="`echo ${cur} | sed -e "s|^/*||"`" # avoid trailing slash
+ cur="`echo ${cur} | sed -e "s|^/*||"`" # avoid leading slash
opts="$(cd $path/config/recipients && ls --color=never -p ${cur}* 2> /dev/null)"
;;
genpair)
- cur="`echo ${cur} | sed -e "s|^/*||"`" # avoid trailing slash
+ cur="`echo ${cur} | sed -e "s|^/*||"`" # avoid leading slash
opts="$(bash -c "set -f && export KEYRINGER_CHECK_VERSION=false && keyringer $instance ls -p -d ${cur}*" 2> /dev/null)"
;;
git)