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
8101acea
Unverified
Commit
8101acea
authored
Dec 09, 2017
by
Jens
Committed by
GitHub
Dec 09, 2017
Browse files
Update dns_servercow.sh
fixed remaining issues from shellcheck
parent
1c9b1983
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_servercow.sh
View file @
8101acea
...
...
@@ -50,7 +50,7 @@ dns_servercow_add() {
_debug _domain
"
$_domain
"
if
_servercow_api POST
"
$_domain
"
"{
\"
type
\"
:
\"
TXT
\"
,
\"
name
\"
:
\"
$fulldomain
\"
,
\"
content
\"
:
\"
$txtvalue
\"
,
\"
ttl
\"
:20}"
;
then
if
printf
--
"%s"
"
$response
"
|
grep
"ok"
>
/dev/null
;
then
if
printf
--
"%s"
"
$response
"
|
grep
"ok"
>
/dev/null
;
then
_info
"Added, OK"
return
0
else
...
...
@@ -93,7 +93,7 @@ dns_servercow_rm() {
_debug _domain
"
$_domain
"
if
_servercow_api DELETE
"
$_domain
"
"{
\"
type
\"
:
\"
TXT
\"
,
\"
name
\"
:
\"
$fulldomain
\"
}"
;
then
if
printf
--
"%s"
"
$response
"
|
grep
"ok"
>
/dev/null
;
then
if
printf
--
"%s"
"
$response
"
|
grep
"ok"
>
/dev/null
;
then
_info
"Deleted, OK"
_contains
"
$response
"
'"message":"ok"'
else
...
...
@@ -140,7 +140,7 @@ _get_root() {
p
=
$i
i
=
$(
_math
"
$i
"
+ 1
)
done
;
done
return
1
}
...
...
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