From 5c958eb741dd5c51495c48ef861ef03e107b18f1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 25 Nov 2013 22:19:46 -0200 Subject: Typo: 'trailing slash' was meant to be 'leading slash' --- lib/keyringer/completions/bash/keyringer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/keyringer/completions/bash') 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) -- cgit v1.2.3