* do not use script home

* fix format

* fix issue when there is no one records in the domain.
This commit is contained in:
neil authored and GitHub committed 2016-12-04 13:46:07 +08:00
1 parent 048e5210f7
commit c572ce946b
1 file changed
+2 -2
+2 -2
View File
@@ -69,11 +69,11 @@ existing_records() {
_debug "Getting txt records"
root=$1
sub=$2
count=0
if ! _rest GET "record/$_domain_id?:domain_id?host_id=0&offset=0&row_num=100"; then
return 1
fi
count=0
seg=$(printf "%s\n" "$response" | _egrep_o "{[^\{]*host\":\"$_sub_domain\"[^\}]*\}")
_debug seg "$seg"
if [ -z "$seg" ]; then
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.