aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/functions
diff options
context:
space:
mode:
authorrhatto <rhatto@ratatosk.fluxo.info>2014-03-17 21:10:10 -0300
committerrhatto <rhatto@ratatosk.fluxo.info>2014-03-17 21:10:10 -0300
commitc77565e1e2ac774659c125b2ca14f18d9f56f0cf (patch)
tree4dfc701829f82f4a555dfc938ef2f508f55478e1 /lib/keyringer/functions
parentc3cb9ea4b3f65b95001d2ff07e68f7733a3b78a1 (diff)
downloadkeyringer-c77565e1e2ac774659c125b2ca14f18d9f56f0cf.tar.gz
keyringer-c77565e1e2ac774659c125b2ca14f18d9f56f0cf.tar.bz2
Using -iname at find action
Diffstat (limited to 'lib/keyringer/functions')
-rwxr-xr-xlib/keyringer/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 42850b9..7840b04 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -429,7 +429,7 @@ function keyringer_get_file {
elif [ ! -f "$KEYDIR/$FILE" ]; then
# Try to find a similar file
count=0
- candidates=(`keyringer_exec find "$BASEDIR" | grep -i "$1" | grep -e '.asc$'`)
+ candidates=(`keyringer_exec find "$BASEDIR" "$1*.asc"`)
if [ ! -z "$candidates" ]; then
echo "Could not find exact match for \"$1\", please choose one of the following secrets:"