Browse Source

fix https://github.com/Neilpang/acme.sh/issues/2150

neilpang 6 years ago
parent
commit
53c0188248
1 changed files with 1 additions and 1 deletions
  1. 1 1
      acme.sh

+ 1 - 1
acme.sh

@@ -1974,7 +1974,7 @@ _save_conf() {
   _sdkey="$2"
   _sdkey="$2"
   _sdvalue="$3"
   _sdvalue="$3"
   _b64encode="$4"
   _b64encode="$4"
-  if [ "$_b64encode" ]; then
+  if [ "$_sdvalue" ] && [ "$_b64encode" ]; then
     _sdvalue="${B64CONF_START}$(printf "%s" "${_sdvalue}" | _base64)${B64CONF_END}"
     _sdvalue="${B64CONF_START}$(printf "%s" "${_sdvalue}" | _base64)${B64CONF_END}"
   fi
   fi
   if [ "$_s_c_f" ]; then
   if [ "$_s_c_f" ]; then