summaryrefslogtreecommitdiff
path: root/lib/keyringer/functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/keyringer/functions')
-rw-r--r--lib/keyringer/functions6
1 files changed, 5 insertions, 1 deletions
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