]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Fixing recipients comment
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Nov 2010 19:53:31 +0000 (17:53 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Nov 2010 19:53:31 +0000 (17:53 -0200)
lib/keyringer/functions

index 4a02fd98f54fbe6bc7c0333c114dec45dd65aaff..ec680de6aeab86b51167acce375898e0672f8478 100644 (file)
@@ -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