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
f8027658
Commit
f8027658
authored
Jul 12, 2020
by
robertoetcheverryr
Browse files
Added check for Authentication failure in dns_dynu module
parent
cda41deb
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dynu.sh
View file @
f8027658
...
...
@@ -216,6 +216,10 @@ _dynu_authentication() {
_err
"Authentication failed."
return
1
fi
if
_contains
"
$response
"
"Authentication Exception"
;
then
_err
"Authentication failed."
return
1
fi
if
_contains
"
$response
"
"access_token"
;
then
Dynu_Token
=
$(
printf
"%s"
"
$response
"
|
tr
-d
"{}"
|
cut
-d
,
-f
1 |
cut
-d
:
-f
2 |
cut
-d
'"'
-f
2
)
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