From ed33ad778c4a478e1a8d0afb40b29a0d1391d0bf Mon Sep 17 00:00:00 2001 From: TheSpad Date: Wed, 3 Jan 2024 17:56:41 +0000 Subject: [PATCH] Add debug output to auth url fetch --- docker-mods.v3 | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-mods.v3 b/docker-mods.v3 index 22025eb..1329bed 100755 --- a/docker-mods.v3 +++ b/docker-mods.v3 @@ -239,6 +239,7 @@ get_auth_url() { local scope # Call to get manifests and extract www-authenticate header auth_header=$(curl -sLI ${CURL_NOISE_LEVEL} "${1}/${2}" | grep -i www-authenticate | tr -d '\r') + write_debug "${auth_header}" if [[ -n "${auth_header}" ]]; then # Extract realm URL from www-authenticate header realm_url=$(echo "$auth_header" | grep -oP 'realm="\K[^"]+')