Removed 'head -n 1'

This commit is contained in:
Ondřej Budín 2018-07-10 09:32:13 +02:00
parent c1a47cee3d
commit 1a17736f9e

View File

@ -123,7 +123,7 @@ _wedos_get_record_id() {
fi
if _contains "$row" "\"name\":\"$sub_domain\"" >/dev/null && _contains "$row" "\"rdata\":\"$r_data\"" >/dev/null; then
_record_id=$(printf "%s" "$row" | _egrep_o "\[*\"ID\":\"[^\"]*\"" | head -n 1 | cut -d : -f 2 | tr -d \")
_record_id=$(printf "%s" "$row" | _egrep_o "\[*\"ID\":\"[^\"]*\"" | cut -d : -f 2 | tr -d \")
if [ "$_record_id" ]; then
_info "$WEDOS_PREFIX OK."
return 0