World4You Mac debug

pull/3261/head
Lorenz Stechauner 4 years ago
parent da839aae66
commit f38317d01f

@ -53,7 +53,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
_resethttp _resethttp
if grep '302' >/dev/null <"$HTTP_HEADER"; then if grep '302' >/dev/null <"$HTTP_HEADER"; then
msg=$(_get "$WORLD4YOU_API/$paketnr/dns" | tr '\n' '\t' | sed 's/^.*<h3 class="mb-5">[^\t]*\t *\([^\t]*\)\t.*/\1\n/') msg=$(_get "$WORLD4YOU_API/$paketnr/dns" | tr '\n' '\t' | sed 's/.*<h3 class="mb-5">[^\t]*\t *\([^\t]*\)\t.*/\1/')
if _contains "$msg" "successfully"; then if _contains "$msg" "successfully"; then
return 0 return 0
else else
@ -111,7 +111,7 @@ DeleteDnsRecordForm[_token]=$form_token"
_resethttp _resethttp
if grep '302' >/dev/null <"$HTTP_HEADER"; then if grep '302' >/dev/null <"$HTTP_HEADER"; then
msg=$(_get "$WORLD4YOU_API/$paketnr/dns" | tr '\n' '\t' | sed 's/^.*<h3 class="mb-5">[^\t]*\t *\([^\t]*\)\t.*/\1\n/') msg=$(_get "$WORLD4YOU_API/$paketnr/dns" | tr '\n' '\t' | sed 's/.*<h3 class="mb-5">[^\t]*\t *\([^\t]*\)\t.*/\1/')
if _contains "$msg" "successfully"; then if _contains "$msg" "successfully"; then
return 0 return 0
else else

Loading…
Cancel
Save