head => _head_n

This commit is contained in:
Habetdin 2018-03-28 18:14:45 +03:00 committed by GitHub
parent fde971fe81
commit b14ef537e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ dns_zilore_rm() {
_err "Error while getting records list" _err "Error while getting records list"
return 1 return 1
else else
_record_id=$(printf "%s\n" "$response" | _egrep_o "\"record_id\":\"[^\"]+\"" | cut -d : -f 2 | tr -d \" | head -n 1) _record_id=$(printf "%s\n" "$response" | _egrep_o "\"record_id\":\"[^\"]+\"" | cut -d : -f 2 | tr -d \" | _head_n 1)
if [ -z "$_record_id" ]; then if [ -z "$_record_id" ]; then
_err "Cannot determine _record_id" _err "Cannot determine _record_id"
return 1 return 1