From 27f352b39a9ba8e3644a37bd2de636e946f9644d Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 23 Oct 2019 13:07:16 +0200 Subject: [PATCH] Fix Docker login with (#36) --- builder.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/builder.sh b/builder.sh index 6e8c587..24c6cf7 100755 --- a/builder.sh +++ b/builder.sh @@ -177,10 +177,6 @@ function start_docker() { fi done bashio::log.info "Docker was initialized" - - if [ "$DOCKER_LOGIN" == "true" ]; then - docker login - fi } @@ -970,6 +966,11 @@ mkdir -p /data init_crosscompile start_docker +# Login into dockerhub +if [ "$DOCKER_LOGIN" == "true" ]; then + docker login +fi + # Load external repository if [ -n "$GIT_REPOSITORY" ]; then bashio::log.info "Checkout repository $GIT_REPOSITORY"