From: Silvio Rhatto Date: Thu, 18 Nov 2010 19:53:31 +0000 (-0200) Subject: Fixing recipients comment X-Git-Tag: 0.2.1~105 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=54be3287db66b68d273c8ec4c2ae9585dacb2e70;p=keyringer.git Fixing recipients comment --- 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