mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-29 21:32:44 +00:00
fix shellcheck issue by GBBx
This commit is contained in:
parent
14e7780d15
commit
7ccbee6759
@ -345,8 +345,8 @@ _azure_getaccess_token() {
|
|||||||
|
|
||||||
if [ "$arc" = true ]; then
|
if [ "$arc" = true ]; then
|
||||||
response="$(_get http://localhost:40342/metadata/identity/oauth2/token\?api-version=2019-08-15\&resource=https://management.azure.com/)"
|
response="$(_get http://localhost:40342/metadata/identity/oauth2/token\?api-version=2019-08-15\&resource=https://management.azure.com/)"
|
||||||
CHALLANGE=$(cat "$HTTP_HEADER" | grep Www | sed 's/Www-Authenticate: Basic realm=//g' | sed 's/[^a-zA-Z0-9\/\.\-]//g')
|
CHALLENGE=$(grep Www "$HTTP_HEADER" | sed 's/Www-Authenticate: Basic realm=//g' | sed 's/[^a-zA-Z0-9\/\.\-]//g')
|
||||||
_H2="Authorization: Basic $(cat "$CHALLANGE")"
|
_H2="Authorization: Basic $(cat "$CHALLENGE")"
|
||||||
export _H2
|
export _H2
|
||||||
response="$(_get http://localhost:40342/metadata/identity/oauth2/token\?api-version=2019-08-15\&resource=https://management.azure.com/)"
|
response="$(_get http://localhost:40342/metadata/identity/oauth2/token\?api-version=2019-08-15\&resource=https://management.azure.com/)"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user