Skip to content

Commit

Permalink
clean TXT records when error happens.
Browse files Browse the repository at this point in the history
  • Loading branch information
neilpang committed Jan 21, 2019
1 parent 0b93423 commit b15c1ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acme.sh
Expand Up @@ -2921,7 +2921,10 @@ _clearup() {

_clearupdns() {
_debug "_clearupdns"
if [ "$dnsadded" != 1 ] || [ -z "$vlist" ]; then
_debug "dnsadded" "$dnsadded"
_debug "vlist" "$vlist"
#dnsadded is "0" or "1" means dns-01 method was used for at least one domain
if [ -z "$dnsadded" ] || [ -z "$vlist" ]; then
_debug "skip dns."
return
fi
Expand Down

0 comments on commit b15c1ff

Please sign in to comment.