mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-27 23:41:45 +00:00
World4You using ggrep more often
This commit is contained in:
parent
9474933070
commit
0ed2659698
@ -56,8 +56,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
|
|||||||
|
|
||||||
_ACME_CURL="$_ORIG_ACME_CURL"
|
_ACME_CURL="$_ORIG_ACME_CURL"
|
||||||
|
|
||||||
success=$(grep '302\|200' <"$HTTP_HEADER")
|
if _ggrep -q '302\|200' <"$HTTP_HEADER"; then
|
||||||
if [ "$success" ]; then
|
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
_err "$(head -n 1 <"$HTTP_HEADER")"
|
_err "$(head -n 1 <"$HTTP_HEADER")"
|
||||||
@ -116,8 +115,7 @@ DeleteDnsRecordForm[_token]=$form_token"
|
|||||||
|
|
||||||
_ACME_CURL="$_ORIG_ACME_CURL"
|
_ACME_CURL="$_ORIG_ACME_CURL"
|
||||||
|
|
||||||
success=$(grep '302\|200' <"$HTTP_HEADER")
|
if _ggrep -q '302\|200' <"$HTTP_HEADER"; then
|
||||||
if [ "$success" ]; then
|
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
_err "$(head -n 1 <"$HTTP_HEADER")"
|
_err "$(head -n 1 <"$HTTP_HEADER")"
|
||||||
|
Loading…
Reference in New Issue
Block a user