fix format
This commit is contained in:
parent
c6f5c7f1a3
commit
d8eb08e214
@ -45,7 +45,7 @@ dns_gd_add() {
|
|||||||
|
|
||||||
if _contains "$response" "$txtvalue"; then
|
if _contains "$response" "$txtvalue"; then
|
||||||
_info "The record is existing, skip"
|
_info "The record is existing, skip"
|
||||||
return 0;
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_add_data="{\"data\":\"$txtvalue\"}"
|
_add_data="{\"data\":\"$txtvalue\"}"
|
||||||
@ -98,7 +98,7 @@ dns_gd_rm() {
|
|||||||
|
|
||||||
if ! _contains "$response" "$txtvalue"; then
|
if ! _contains "$response" "$txtvalue"; then
|
||||||
_info "The record is not existing, skip"
|
_info "The record is not existing, skip"
|
||||||
return 0;
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_add_data=""
|
_add_data=""
|
||||||
@ -117,7 +117,7 @@ dns_gd_rm() {
|
|||||||
fi
|
fi
|
||||||
_debug2 _add_data "$_add_data"
|
_debug2 _add_data "$_add_data"
|
||||||
|
|
||||||
_gd_rest PUT "domains/$_domain/records/TXT/$_sub_domain" "[$_add_data]";
|
_gd_rest PUT "domains/$_domain/records/TXT/$_sub_domain" "[$_add_data]"
|
||||||
}
|
}
|
||||||
|
|
||||||
#################### Private functions below ##################################
|
#################### Private functions below ##################################
|
||||||
|
Loading…
Reference in New Issue
Block a user