]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
World4You using ggrep more often
authorLorenz Stechauner <lorenz.stechauner@gmail.com>
Sat, 28 Nov 2020 16:27:50 +0000 (17:27 +0100)
committerLorenz Stechauner <lorenz.stechauner@gmail.com>
Sat, 28 Nov 2020 16:27:50 +0000 (17:27 +0100)
dnsapi/dns_world4you.sh

index 455418a53c456cddc792af5c912bc35baaa2210a..10c1628b74a80e4cfee4eaf393aade309160ce06 100644 (file)
@@ -56,8 +56,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
 
   _ACME_CURL="$_ORIG_ACME_CURL"
 
-  success=$(grep '302\|200' <"$HTTP_HEADER")
-  if [ "$success" ]; then
+  if _ggrep -q '302\|200' <"$HTTP_HEADER"; then
     return 0
   else
     _err "$(head -n 1 <"$HTTP_HEADER")"
@@ -116,8 +115,7 @@ DeleteDnsRecordForm[_token]=$form_token"
 
   _ACME_CURL="$_ORIG_ACME_CURL"
 
-  success=$(grep '302\|200' <"$HTTP_HEADER")
-  if [ "$success" ]; then
+  if _ggrep -q '302\|200' <"$HTTP_HEADER"; then
     return 0
   else
     _err "$(head -n 1 <"$HTTP_HEADER")"