Browse Source

Fixing formating errors

pull/2458/head
Kent Varmedal 6 years ago
parent
commit
f753d61065
  1. 2
      dnsapi/dns_domeneshop.sh

2
dnsapi/dns_domeneshop.sh

@ -123,7 +123,7 @@ _get_recordid() {
fi
# Get the id of the record in question
_recordid=$(printf "%s" "$response" | _egrep_o "[^{]*\"host\":\"$subdomain\"[^}]*" | _egrep_o "[^{]*\"data\":\"$txtvalue\"[^}]*"| _egrep_o "\"id\":[0-9]+" | cut -d : -f 2)
_recordid=$(printf "%s" "$response" | _egrep_o "[^{]*\"host\":\"$subdomain\"[^}]*" | _egrep_o "[^{]*\"data\":\"$txtvalue\"[^}]*" | _egrep_o "\"id\":[0-9]+" | cut -d : -f 2)
if [ -z "$_recordid" ]; then
return 1
fi

Loading…
Cancel
Save