From 6c4412b7af5c86d2110bdae1581496f804ce24da Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 11 Dec 2015 10:36:55 +0000 Subject: [PATCH] Tidy key sharing --- src/freedombone-backup-remote | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/freedombone-backup-remote b/src/freedombone-backup-remote index f288d5ca..92cd86e7 100755 --- a/src/freedombone-backup-remote +++ b/src/freedombone-backup-remote @@ -424,15 +424,15 @@ function disperse_key_shares { # Send a warning email echo "Key share to $REMOTE_SERVER failed" | \ mail -s "${PROJECT_NAME} social key management" $MY_EMAIL_ADDRESS + else + # Send a confirmation email + echo "Key ${share_filename} shared to $REMOTE_SERVER" | \ + mail -s "${PROJECT_NAME} social key management" $MY_EMAIL_ADDRESS fi # remove the temp file/directory shred -zu $temp_key_share_fragments/* rm -rf $temp_key_share_dir - - # Send a confirmation email - echo "Key ${share_filename} shared to $REMOTE_SERVER" | \ - mail -s "${PROJECT_NAME} social key management" $MY_EMAIL_ADDRESS fi fi fi