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