From 025e182dde56df40b9cf28f7dc623d78e296020c Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Thu, 28 Nov 2024 14:48:16 +0800 Subject: [PATCH] PE-5632 fix: accept cert without proxy (#316) * fix: copy cert in dockerfile Signed-off-by: Nianyu Shen * fix: accept cert without proxy Signed-off-by: Nianyu Shen --------- Signed-off-by: Nianyu Shen --- earthly.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earthly.sh b/earthly.sh index d28c922..abcb8b6 100755 --- a/earthly.sh +++ b/earthly.sh @@ -115,7 +115,7 @@ if ! docker run --rm --privileged $ALPINE_IMG sh -c 'echo "Privileged container echo "Privileged containers are not allowed for the current user." exit 1 fi -if [ -z "$HTTP_PROXY" ] && [ -z "$HTTPS_PROXY"]; then +if [ -z "$HTTP_PROXY" ] && [ -z "$HTTPS_PROXY" ] && [ -z "$(find certs -type f ! -name '.*' -print -quit)" ]; then build_without_proxy "$@" else build_with_proxy "$@"