From d398bfc902efb18f6d8fad640bf66c50f987c962 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Mon, 10 Jul 2023 14:28:37 -0500 Subject: [PATCH] Put it back to an if for clarity. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35fbf57de..eb22d1056 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,8 @@ ARG GIT_VDBTO_TOKEN # Get dependencies - will also be cached if we won't change go.mod/go.sum WORKDIR /go-ethereum/ COPY go.mod go.sum . -RUN [ -n "$GIT_VDBTO_TOKEN" ] && git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/" ; \ - go mod download ; \ +RUN if [ -n "$GIT_VDBTO_TOKEN" ]; then git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \ + go mod download && \ rm -f ~/.gitconfig COPY . .