Commit cd900628 authored by nytral's avatar nytral Committed by neilpang
Browse files

better bugfix

parent 3ec72fce
......@@ -46,7 +46,7 @@ dns_me_add(){
if [ "$count" = "0" ] ; then
_info "Adding record"
if _me_rest POST "$_domain_id/records/" "{\"type\":\"TXT\",\"name\":\"$_sub_domain\",\"value\":\"$txtvalue\",\"gtdLocation\":\"DEFAULT\",\"ttl\":120}"; then
if [ "$?" = "0" ]; then
if printf -- "%s" "$response" | grep \"id\": > /dev/null ; then
_info "Added"
#todo: check if the record takes effect
return 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment