From 7ccbee6759cc992d6a7d826b3cc8f4c7d8239384 Mon Sep 17 00:00:00 2001 From: Kisbogyi Date: Tue, 22 Apr 2025 23:53:38 +0200 Subject: [PATCH] fix shellcheck issue by GBBx --- dnsapi/dns_azure.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_azure.sh b/dnsapi/dns_azure.sh index 33f8f670..b08a65c0 100644 --- a/dnsapi/dns_azure.sh +++ b/dnsapi/dns_azure.sh @@ -345,8 +345,8 @@ _azure_getaccess_token() { if [ "$arc" = true ]; then 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') - _H2="Authorization: Basic $(cat "$CHALLANGE")" + CHALLENGE=$(grep Www "$HTTP_HEADER" | sed 's/Www-Authenticate: Basic realm=//g' | sed 's/[^a-zA-Z0-9\/\.\-]//g') + _H2="Authorization: Basic $(cat "$CHALLENGE")" export _H2 response="$(_get http://localhost:40342/metadata/identity/oauth2/token\?api-version=2019-08-15\&resource=https://management.azure.com/)" else