Browse Source

World4You head_n

pull/3261/head
Lorenz Stechauner 4 years ago
parent
commit
1e3bb1f02b
  1. 6
      dnsapi/dns_world4you.sh

6
dnsapi/dns_world4you.sh

@ -59,7 +59,7 @@ AddDnsRecordForm[uniqueFormIdTTL]=$formidttl&AddDnsRecordForm[_token]=$form_toke
if grep '302' >/dev/null <"$HTTP_HEADER"; then
return 0
else
_err "$(head -n 1 <"$HTTP_HEADER")"
_err "$(head_n 1 <"$HTTP_HEADER")"
return 2
fi
}
@ -118,7 +118,7 @@ DeleteDnsRecordForm[_token]=$form_token"
if grep '302' >/dev/null <"$HTTP_HEADER"; then
return 0
else
_err "$(head -n 1 <"$HTTP_HEADER")"
_err "$(head_n 1 <"$HTTP_HEADER")"
return 2
fi
}
@ -183,6 +183,6 @@ _get_paketnr() {
TLD="$domain"
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
}
Loading…
Cancel
Save