aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/keyringer/functions')
-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