fix: debugging

This commit is contained in:
racitup 2021-12-20 00:50:33 +00:00 committed by neil
parent 6251652c93
commit 56d799f449
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ _initAuth() {
# 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.
_oauth2() {
printenv
_info "$(printenv)"
if [ -z "$TEST_DNS_SLEEP" ]; then
_oauth2_std
else
@ -211,7 +211,7 @@ _oauth2_github() {
response="$(_post "$body" "$MB_AUTH" "" "POST" "application/json")"
MB_TK="$(echo "$response" | _egrep_o "\"token\":\"[^\"]*\"" | cut -d : -f 2 | tr -d '"')"
if [ -z "$MB_TK" ]; then
_err "Unable to get access_token"
_err "Unable to get token"
_err "\n$response"
return 1
fi