Browse Source

fix format

pull/2100/head^2
neilpang 7 years ago
parent
commit
8c20ef0309
  1. 10
      acme.sh

10
acme.sh

@ -3471,12 +3471,12 @@ __check_txt() {
#wait and check each dns entries #wait and check each dns entries
_check_dns_entries() { _check_dns_entries() {
_success_txt=",";
_success_txt=","
_end_time="$(_time)" _end_time="$(_time)"
_end_time="$(_math "$_end_time" + 1200)" #let's check no more than 20 minutes. _end_time="$(_math "$_end_time" + 1200)" #let's check no more than 20 minutes.
while [ "$(_time)" -le "$_end_time" ]; do while [ "$(_time)" -le "$_end_time" ]; do
_left="";
_left=""
for entry in $dns_entries; do for entry in $dns_entries; do
d=$(_getfield "$entry" 1) d=$(_getfield "$entry" 1)
txtdomain=$(_getfield "$entry" 2) txtdomain=$(_getfield "$entry" 2)
@ -3491,7 +3491,7 @@ _check_dns_entries() {
_info "Checking $d for $aliasDomain" _info "Checking $d for $aliasDomain"
if _contains "$_success_txt" ",$txt,"; then if _contains "$_success_txt" ",$txt,"; then
_info "Already success, continue next one." _info "Already success, continue next one."
continue;
continue
fi fi
if __check_txt "$txtdomain" "$aliasDomain" "$txt"; then if __check_txt "$txtdomain" "$aliasDomain" "$txt"; then
@ -3501,7 +3501,7 @@ _check_dns_entries() {
fi fi
_left=1 _left=1
_info "Not valid yet, let's wait 5 seconds and check next one." _info "Not valid yet, let's wait 5 seconds and check next one."
_sleep 5;
_sleep 5
done done
if [ "$_left" ]; then if [ "$_left" ]; then
_info "Let's wait 10 seconds and check again". _info "Let's wait 10 seconds and check again".
@ -3837,7 +3837,7 @@ $_authorizations_map"
done done
_debug vlist "$vlist" _debug vlist "$vlist"
#add entry #add entry
dns_entries="";
dns_entries=""
dnsadded="" dnsadded=""
ventries=$(echo "$vlist" | tr "$dvsep" ' ') ventries=$(echo "$vlist" | tr "$dvsep" ' ')
_alias_index=1 _alias_index=1

Loading…
Cancel
Save