From a954d8284b67971d8f8589e497096547c72fc994 Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 29 Aug 2022 19:32:26 +0200 Subject: [PATCH] Fix quoting of login json template. --- src/common | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common b/src/common index 6f9dcf9..f79028f 100755 --- a/src/common +++ b/src/common @@ -4,7 +4,7 @@ DEFAULT_DOMAIN=docker.io LEGACY_DEFAULT_DOMAIN=index.docker.io -DOCKER_LOGIN_FILE_TMPL='{"auths": { {{REGISTRY_URL}}: { "auth": {{BASE64_UNAME_PW}} }}}' +DOCKER_LOGIN_FILE_TMPL='{"auths": { "{{REGISTRY_URL}}": { "auth": {{BASE64_UNAME_PW}} }}}' fail() { echo "Error:" "$@" 1>&2 @@ -67,7 +67,6 @@ if [ -n "$USERNAME" ]; then fail "need to also give password when logging in" fi docker_login "$(split_repo_domain "$REPOSITORY" | head -n1)" - jq -r . < "$HOME/.docker/config.json" fi if [ -z "$REPOSITORY" ]; then