World4You head_n

This commit is contained in:
Lorenz Stechauner 2020-11-29 11:51:59 +01:00
parent 0dcf6771e7
commit 1e3bb1f02b

View File

@ -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
}