This commit is contained in:
nytral 2017-03-08 22:21:25 +01:00
parent 17361df66b
commit d3c4cd8270

View File

@ -41,7 +41,7 @@ dns_nsone_add() {
return 1
fi
count=$(printf "%s\n" "$response" | _egrep_o "\"domain\":\"$fulldomain.\",[^{]*\"type\":\"TXT\"" | wc -l | tr -d " ")
count=$(printf "%s\n" "$response" | _egrep_o "\"domain\":\"$fulldomain\",[^{]*\"type\":\"TXT\"" | wc -l | tr -d " ")
_debug count "$count"
if [ "$count" = "0" ]; then
_info "Adding record"