fix shellcheck issue by GBBx

This commit is contained in:
Kisbogyi 2025-04-22 23:53:38 +02:00
parent 14e7780d15
commit 7ccbee6759

View File

@ -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