Skip to content

Commit

Permalink
replace wired space symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
scruel committed Feb 28, 2024
1 parent 2cbdf27 commit 79640f6
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2393,21 +2393,21 @@ _readdomainconf() {

#_migratedomainconf oldkey newkey base64encode
_migratedomainconf() {
  _old_key="$1"
  _new_key="$2"
  _b64encode="$3"
  _old_value=$(_readdomainconf "$_old_key")
  _cleardomainconf "$_old_key"
  if [ -z "$_old_value" ]; then
    return 1 # migrated failed: old value is empty
  fi
  _new_value=$(_readdomainconf "$_new_key")
  if [ -n "$_new_value" ]; then
    _debug "Domain config new key exists, old key $_old_key='$_old_value' has been removed."
    return 1 # migrated failed: old value replaced by new value
  fi
  _savedomainconf "$_new_key" "$_old_value" "$_b64encode"
  _debug "Domain config $_old_key has been migrated to $_new_key."
_old_key="$1"
_new_key="$2"
_b64encode="$3"
_old_value=$(_readdomainconf "$_old_key")
_cleardomainconf "$_old_key"
if [ -z "$_old_value" ]; then
return 1 # migrated failed: old value is empty
fi
_new_value=$(_readdomainconf "$_new_key")
if [ -n "$_new_value" ]; then
_debug "Domain config new key exists, old key $_old_key='$_old_value' has been removed."
return 1 # migrated failed: old value replaced by new value
fi
_savedomainconf "$_new_key" "$_old_value" "$_b64encode"
_debug "Domain config $_old_key has been migrated to $_new_key."
}

#_migratedeployconf oldkey newkey base64encode
Expand Down

0 comments on commit 79640f6

Please sign in to comment.