summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-08-21 14:12:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-08-21 14:12:50 -0300
commitf348c88f07380747149265f319c3c3a97bd4a047 (patch)
tree871bbe748c770cb2e73b334cba0474d66ac9c6e2 /lib
parentf6f315aa3cbcaa33b2f69e79c83c08b841079703 (diff)
downloadkeyringer-f348c88f07380747149265f319c3c3a97bd4a047.tar.gz
keyringer-f348c88f07380747149265f319c3c3a97bd4a047.tar.bz2
Initialization fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 6ac8bf8..dc1ce0f 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -340,6 +340,10 @@ function keyringer_action_usage {
# Check recipients
function keyringer_check_recipients {
+ if [ "$KEYRINGER_CHECK_RECIPIENTS" == "false" ]; then
+ return
+ fi
+
# Check if recipients file is empty.
if [ "`grep -vE "^#|^$" "$RECIPIENTS"/* | wc -l`" == 0 ] && [ "$SUBCOMMAND" != "edit" ]; then
echo "Fatal: no recipients configured for this keyring."