Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
d8eb08e2
Commit
d8eb08e2
authored
Feb 14, 2018
by
neilpang
Browse files
fix format
parent
c6f5c7f1
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_gd.sh
View file @
d8eb08e2
...
@@ -45,7 +45,7 @@ dns_gd_add() {
...
@@ -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() {
...
@@ -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() {
...
@@ -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 ##################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment