aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-07 17:37:47 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-07 17:37:47 -0200
commita31b634f7ec127b45142dfe786a32b73055324ac (patch)
treeaea4b328cf2e284293eb3830c81361c3ffefa6a3 /lib
parent7ba83b19181d36a57aa5a0d3f6aae71c2245b8fd (diff)
downloadkeyringer-a31b634f7ec127b45142dfe786a32b73055324ac.tar.gz
keyringer-a31b634f7ec127b45142dfe786a32b73055324ac.tar.bz2
Misc fixes
Diffstat (limited to 'lib')
-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