Browse Source

head => _head_n

dnsconf
Habetdin 7 years ago
committed by GitHub
parent
commit
b14ef537e1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dnsapi/dns_zilore.sh

2
dnsapi/dns_zilore.sh

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

Loading…
Cancel
Save