aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-11-18 17:53:31 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-11-18 17:53:31 -0200
commit54be3287db66b68d273c8ec4c2ae9585dacb2e70 (patch)
treef567b3d9012bf2652583d47cfae0da0d68913f94 /lib
parent5a1c43a7ee6dd5ff8ab1bf44679c6742724dd85c (diff)
downloadkeyringer-54be3287db66b68d273c8ec4c2ae9585dacb2e70.tar.gz
keyringer-54be3287db66b68d273c8ec4c2ae9585dacb2e70.tar.bz2
Fixing recipients comment
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/functions8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 4a02fd9..ec680de 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -261,8 +261,14 @@ function keyringer_action_usage {
# Check recipients
function keyringer_check_recipients {
+ # Check recipients header for updates.
+ if grep -qe ' XXXXXXXX$' $RECIPIENTS; then
+ echo "Updating recipients file..."
+ sed -i -e 's/ XXXXXXXX$/ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/' $RECIPIENTS
+ fi
+
if [ "$1" == "edit" ]; then
- # Don't check recipients at edit mode.
+ # Don't do the other checks at edit mode.
return
fi