From c77565e1e2ac774659c125b2ca14f18d9f56f0cf Mon Sep 17 00:00:00 2001 From: rhatto Date: Mon, 17 Mar 2014 21:10:10 -0300 Subject: Using -iname at find action --- lib/keyringer/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/keyringer/functions') 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:" -- cgit v1.2.3