瀏覽代碼

Invert logic

Bob Mottram 7 年之前
父節點
當前提交
801e14529d
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/freedombone-controlpanel-user

+ 2
- 2
src/freedombone-controlpanel-user 查看文件

865
     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}"
865
     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}"
866
     bdsmail_address=
866
     bdsmail_address=
867
     bdsmailstr=
867
     bdsmailstr=
868
-    if [ ! -f ~/.mutt/bdsmail ]; then
868
+    if [ -f ~/.mutt/bdsmail ]; then
869
         bdsmail_address=$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}')
869
         bdsmail_address=$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}')
870
         bdsmailstr="\\n\\nI2P Address: ${bdsmail_address}"
870
         bdsmailstr="\\n\\nI2P Address: ${bdsmail_address}"
871
         dialog_height=$((dialog_height+3))
871
         dialog_height=$((dialog_height+3))
885
         echo ''
885
         echo ''
886
         qr_code_shown=1
886
         qr_code_shown=1
887
     fi
887
     fi
888
-    if [ -f ~/.mutt/bdsmail ]; then
888
+    if [ "${bdsmail_address}" ]; then
889
         echo ''
889
         echo ''
890
         echo $'Your bdsmail address:'
890
         echo $'Your bdsmail address:'
891
         echo ''
891
         echo ''