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
8f3a3b29
Commit
8f3a3b29
authored
Jul 09, 2017
by
Vladimir Berezhnoy
Browse files
add newline and checks
parent
bd41f50b
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_yandex.sh
View file @
8f3a3b29
...
...
@@ -13,7 +13,7 @@ dns_yandex_add() {
fulldomain
=
"
${
1
}
"
txtvalue
=
"
${
2
}
"
_debug
"Calling: dns_yandex_add() '
${
fulldomain
}
' '
${
txtvalue
}
'"
_PDD_credentials
_PDD_credentials
||
exit
1
export
_H1
=
"PddToken:
$PDD_Token
"
curDomain
=
"
$(
echo
"
${
fulldomain
}
"
|
awk
-F
.
'{printf("%s.%s\n",$(NF-1), $NF)}'
)
"
...
...
@@ -28,7 +28,7 @@ dns_yandex_add() {
dns_yandex_rm
()
{
fulldomain
=
"
${
1
}
"
_debug
"Calling: dns_yandex_rm() '
${
fulldomain
}
'"
_PDD_credentials
_PDD_credentials
||
exit
1
export
_H1
=
"PddToken:
$PDD_Token
"
record_id
=
$(
pdd_get_record_id
"
${
fulldomain
}
"
)
...
...
@@ -67,3 +67,4 @@ for r in rs:
exit
"
}
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