agdsign
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
dnsapi/dns_nic.sh
|
@ -139,7 +139,9 @@ _nic_get_authtoken() { |
|
|
_res_arr=$(printf "%s" "$res" | tr -d "\"{}" | tr "," " "); |
|
|
_res_arr=$(printf "%s" "$res" | tr -d "\"{}" | tr "," " "); |
|
|
|
|
|
|
|
|
for r in $_res_arr; do |
|
|
for r in $_res_arr; do |
|
|
[[ $(echo $r | grep "access_token") ]] && _auth_token=$(printf "%s" "$r" | sed "s/access_token://") |
|
|
|
|
|
|
|
|
if [ $(echo $r | grep "access_token") ]; then |
|
|
|
|
|
_auth_token=$(echo $r | sed "s/access_token://") |
|
|
|
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
_info "Token received" |
|
|
_info "Token received" |
|
|