This commit is contained in:
neilpang 2017-01-31 18:46:24 +08:00
parent 5d833336d3
commit 05cf405cb5
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ dns_lua_add() {
return 1
fi
count=$(printf "%s\n" "$response" | _egrep_o "\"name\":\"$fulldomain\"" | wc -l | tr -s " ")
count=$(printf "%s\n" "$response" | _egrep_o "\"name\":\"$fulldomain\"" | wc -l | tr -d " ")
_debug count "$count"
if [ "$count" = "0" ]; then
_info "Adding record"