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
9c4ac24a
Commit
9c4ac24a
authored
Dec 20, 2021
by
racitup
Browse files
fix: debugging
parent
bf66df2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_mythic_beasts.sh
View file @
9c4ac24a
...
@@ -166,7 +166,7 @@ _initAuth() {
...
@@ -166,7 +166,7 @@ _initAuth() {
# authentication. This works arounds this by using an undocumented MB API to obtain a token not tied to an
# authentication. This works arounds this by using an undocumented MB API to obtain a token not tied to an
# IP just for the github tests.
# IP just for the github tests.
_oauth2
()
{
_oauth2
()
{
printenv
_info
"
$(
printenv
)
"
if
[
-z
"
$TEST_DNS_SLEEP
"
]
;
then
if
[
-z
"
$TEST_DNS_SLEEP
"
]
;
then
_oauth2_std
_oauth2_std
else
else
...
@@ -211,7 +211,7 @@ _oauth2_github() {
...
@@ -211,7 +211,7 @@ _oauth2_github() {
response
=
"
$(
_post
"
$body
"
"
$MB_AUTH
"
""
"POST"
"application/json"
)
"
response
=
"
$(
_post
"
$body
"
"
$MB_AUTH
"
""
"POST"
"application/json"
)
"
MB_TK
=
"
$(
echo
"
$response
"
| _egrep_o
"
\"
token
\"
:
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
'"'
)
"
MB_TK
=
"
$(
echo
"
$response
"
| _egrep_o
"
\"
token
\"
:
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
'"'
)
"
if
[
-z
"
$MB_TK
"
]
;
then
if
[
-z
"
$MB_TK
"
]
;
then
_err
"Unable to get
access_
token"
_err
"Unable to get token"
_err
"
\n
$response
"
_err
"
\n
$response
"
return
1
return
1
fi
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