浏览代码

fix https://github.com/acmesh-official/acme.sh/issues/4470

neil 2 年之前
父节点
当前提交
bf50fce5bd
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      acme.sh

+ 5 - 3
acme.sh

@@ -2386,12 +2386,14 @@ _getdeployconf() {
   if [ "$_rac_value" ]; then
   if [ "$_rac_value" ]; then
     if _startswith "$_rac_value" '"' && _endswith "$_rac_value" '"'; then
     if _startswith "$_rac_value" '"' && _endswith "$_rac_value" '"'; then
       _debug2 "trim quotation marks"
       _debug2 "trim quotation marks"
-      eval "export $_rac_key=$_rac_value"
+      eval $_rac_key=$_rac_value
+      export $_rac_key
     fi
     fi
     return 0 # do nothing
     return 0 # do nothing
   fi
   fi
-  _saved=$(_readdomainconf "SAVED_$_rac_key")
-  eval "export $_rac_key=\"\$_saved\""
+  _saved="$(_readdomainconf "SAVED_$_rac_key")"
+  eval $_rac_key="$_saved"
+  export $_rac_key
 }
 }
 
 
 #_saveaccountconf  key  value  base64encode
 #_saveaccountconf  key  value  base64encode