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
346454c2
Commit
346454c2
authored
Jan 07, 2020
by
Sergey Zorin
Browse files
fix CI warnings
parent
c822870c
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_nic.sh
View file @
346454c2
...
...
@@ -12,7 +12,6 @@ dns_nic_add() {
fulldomain
=
"
${
1
}
"
txtvalue
=
"
${
2
}
"
if
!
_nic_get_authtoken save
;
then
_err
"get NIC auth token failed"
return
1
...
...
@@ -93,7 +92,7 @@ _nic_get_auth_elements() {
if
[
-n
"
$NIC_Token
"
]
;
then
_two_values
=
"
$(
echo
"
${
NIC_Token
}
"
| _dbase64
)
"
_debug _two_values
"
$_two_values
"
IFS
=
":"
read
-r
NIC_ClientID NIC_ClientSecret
<<<
$_two_values
IFS
=
":"
read
-r
NIC_ClientID NIC_ClientSecret
<<<
"
$_two_values
"
_debug restored_NIC_ClientID
"
$NIC_ClientID
"
_debug restored_NIC_ClientSecret
"
$NIC_ClientSecret
"
fi
...
...
@@ -117,7 +116,7 @@ _nic_get_auth_elements() {
fi
NIC_BasicAuth
=
$(
printf
"%s:%s"
"
${
NIC_ClientID
}
"
"
${
NIC_ClientSecret
}
"
| _base64
)
_debug NIC_BasicAuth
"
$NIC_BasicAuth
"
_debug NIC_BasicAuth
"
$NIC_BasicAuth
"
}
...
...
@@ -125,7 +124,7 @@ _nic_get_auth_elements() {
_nic_get_authtoken
()
{
_need2save
=
$1
if
!
_nic_get_auth_elements
$_need2save
;
then
if
!
_nic_get_auth_elements
"
$_need2save
"
;
then
return
1
fi
...
...
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