From 801e14529d10ebcb4d50fddb7fbce402a268fd90 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 7 Apr 2018 13:22:26 +0100 Subject: [PATCH] Invert logic --- src/freedombone-controlpanel-user | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-controlpanel-user b/src/freedombone-controlpanel-user index a41d16f1..e1d2241a 100755 --- a/src/freedombone-controlpanel-user +++ b/src/freedombone-controlpanel-user @@ -865,7 +865,7 @@ function show_your_email_address { msgstrbase=$"\\nYou can press SHIFT and then drag the mouse and right click to copy.\\n\\nEmail Address: ${MY_EMAIL_ADDRESS}${onionemailstr}\\n\\nKey ID: ${GPG_ID}\\n\\nFingerprint: ${GPG_FINGERPRINT}\\n\\nCreated: ${GPG_DATE}" bdsmail_address= bdsmailstr= - if [ ! -f ~/.mutt/bdsmail ]; then + if [ -f ~/.mutt/bdsmail ]; then bdsmail_address=$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}') bdsmailstr="\\n\\nI2P Address: ${bdsmail_address}" dialog_height=$((dialog_height+3)) @@ -885,7 +885,7 @@ function show_your_email_address { echo '' qr_code_shown=1 fi - if [ -f ~/.mutt/bdsmail ]; then + if [ "${bdsmail_address}" ]; then echo '' echo $'Your bdsmail address:' echo ''