better bugfix

This commit is contained in:
nytral authored and neilpang committed 2016-11-09 23:11:19 +08:00
1 parent 3ec72fcee9
commit cd90062850
1 file changed
+1 -1
+1 -1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.