From a31b634f7ec127b45142dfe786a32b73055324ac Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 Jan 2010 17:37:47 -0200 Subject: Misc fixes --- lib/keyringer/functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/keyringer/functions b/lib/keyringer/functions index d706d5b..19d677f 100644 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -50,7 +50,11 @@ function keyringer_exec { # Return a filename with correct extension function keyringer_filename { - echo `dirname $1`/`basename $1 .asc`.asc + if [ -z "$1" ]; then + return + else + echo `dirname $1`/`basename $1 .asc`.asc + fi } # Check if a folder is inside a git repository -- cgit v1.2.3