]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix update account
authorneilpang <github@neilpang.com>
Thu, 31 Mar 2022 01:35:32 +0000 (09:35 +0800)
committerneilpang <github@neilpang.com>
Thu, 31 Mar 2022 01:35:32 +0000 (09:35 +0800)
fix https://github.com/acmesh-official/acme.sh/issues/4009

acme.sh

diff --git a/acme.sh b/acme.sh
index 5566074f5831d17cb332a1e9ceb887c7408058f0..3860c301c2c8cb256cf7787f263914c4c7b76a32 100755 (executable)
--- a/acme.sh
+++ b/acme.sh
@@ -3758,7 +3758,7 @@ updateaccount() {
 
   _email="$(_getAccountEmail)"
 
-  if [ "$ACCOUNT_EMAIL" ]; then
+  if [ "$_email" ]; then
     updjson='{"contact": ["mailto:'$_email'"]}'
   else
     updjson='{"contact": []}'