Browse Source

fix update account
fix https://github.com/acmesh-official/acme.sh/issues/4009

neilpang 3 years ago
parent
commit
d53262fab6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      acme.sh

+ 1 - 1
acme.sh

@@ -3758,7 +3758,7 @@ updateaccount() {
 
   _email="$(_getAccountEmail)"
 
-  if [ "$ACCOUNT_EMAIL" ]; then
+  if [ "$_email" ]; then
     updjson='{"contact": ["mailto:'$_email'"]}'
   else
     updjson='{"contact": []}'