mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-20 13:21:44 +00:00
World4You head_n
This commit is contained in:
parent
0dcf6771e7
commit
1e3bb1f02b
@ -59,7 +59,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
|
|||||||
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
_err "$(head -n 1 <"$HTTP_HEADER")"
|
_err "$(head_n 1 <"$HTTP_HEADER")"
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -118,7 +118,7 @@ DeleteDnsRecordForm[_token]=$form_token"
|
|||||||
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
if grep '302' >/dev/null <"$HTTP_HEADER"; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
_err "$(head -n 1 <"$HTTP_HEADER")"
|
_err "$(head_n 1 <"$HTTP_HEADER")"
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -183,6 +183,6 @@ _get_paketnr() {
|
|||||||
|
|
||||||
TLD="$domain"
|
TLD="$domain"
|
||||||
RECORD=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#TLD} - 1))")
|
RECORD=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#TLD} - 1))")
|
||||||
PAKETNR=$(echo "$form" | _egrep_o "data-textfilter=\" $domain .* [0-9]*" | head -n 1 | _egrep_o "[0-9]*")
|
PAKETNR=$(echo "$form" | _egrep_o "data-textfilter=\" $domain .* [0-9]*" | head_n 1 | _egrep_o "[0-9]*")
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user