From d62439e6e2e4f117e47f2eca64001643a9cfc90d Mon Sep 17 00:00:00 2001 From: Rawlin Peters Date: Mon, 26 Oct 2020 15:17:00 -0600 Subject: [PATCH] Do not require .git to build (#5181) * Use latest clean_build.sh * Do not require .git repo to build (cherry picked from commit dced3833eab080ed8f8a34d5a21594aafe36c062) --- infrastructure/docker/build/clean_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/docker/build/clean_build.sh b/infrastructure/docker/build/clean_build.sh index 65729d17f5..9ce419522c 100755 --- a/infrastructure/docker/build/clean_build.sh +++ b/infrastructure/docker/build/clean_build.sh @@ -36,7 +36,7 @@ tc_dir=${GOPATH}/src/github.com/apache/trafficcontrol; mkdir -p ${GOPATH}/{src,pkg,bin} $tc_dir; ( set -o errexit; rsync -a /trafficcontrol/ $tc_dir; - if ! [[ -d ${tc_dir}/.git ]]; then + if [ -d /trafficcontrol/.git ] && [ ! -d ${tc_dir}/.git ]; then rsync -a /trafficcontrol/.git $tc_dir; # Docker for Windows compatibility fi; rm -rf ${tc_dir}/dist;