Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
b7b93491
Commit
b7b93491
authored
Mar 27, 2017
by
shar0119
Committed by
GitHub
Mar 27, 2017
Browse files
Removed unnecessary spaces
parent
cd8fcbf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dynu.sh
View file @
b7b93491
...
...
@@ -42,7 +42,7 @@ dns_dynu_add() {
if
!
_get_root
"
$fulldomain
"
;
then
_err
"Invalid domain"
return
1
fi
fi
_debug _node
"
$_node
"
_debug _domain_name
"
$_domain_name
"
...
...
@@ -83,7 +83,7 @@ _get_root() {
_domain_name
=
$(
printf
"%s"
"
$response
"
|
tr
-d
"{}"
|
cut
-d
,
-f
1 |
cut
-d
:
-f
2 |
cut
-d
'"'
-f
2
)
_node
=
$(
printf
"%s"
"
$response
"
|
tr
-d
"{}"
|
cut
-d
,
-f
3 |
cut
-d
:
-f
2 |
cut
-d
'"'
-f
2
)
return
0
return
0
}
_dynu_rest
()
{
...
...
@@ -113,7 +113,7 @@ _dynu_rest() {
_dynu_authentication
()
{
realm
=
"
$(
printf
"%s"
"
$Dynu_ClientId
:
$Dynu_Secret
"
| _base64
)
"
export
_H1
=
"Authorization: Basic
$realm
"
export
_H2
=
"Content-Type: application/json"
...
...
@@ -128,7 +128,7 @@ _dynu_authentication() {
if
_contains
"
$Dynu_Token
"
"null"
;
then
Dynu_Token
=
""
fi
_debug2 response
"
$response
"
return
0
}
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