From 03f53e394ca5c014e4822afd08e49ac954183bb6 Mon Sep 17 00:00:00 2001 From: Chandra P Date: Mon, 12 Feb 2024 09:15:19 -0600 Subject: [PATCH] Update Makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 11a6dcb69..6c095f8f0 100644 --- a/Makefile +++ b/Makefile @@ -279,9 +279,12 @@ setup-custom-cert-for-test-central-repo: ## Setup up the custom ca cert for test @echo "WGET inside setup-custom-cert-for-test-central-repo: $(WGET)" @echo "BZIP2 inside setup-custom-cert-for-test-central-repo: $(BZIP2)" @if [ ! -d $(ROOT_DIR)/hack/central-repo/certs ]; then \ - $(WGET) https://storage.googleapis.com/tanzu-cli/data/testcerts/local-central-repo-testcontent.bz2 -O $(ROOT_DIR)/hack/central-repo/local-central-repo-testcontent.bz2;\ + $(WGET) https://storage.googleapis.com/tanzu-cli/data/testcerts/local-central-repo-testcontent.bz2 -O $(ROOT_DIR)/hack/central-repo/local-central-repo-testcontent.bz2;\ + echo "Tar command:"; \ + echo "$(TAR) xjf $${TAR_BZ2_FILE} -C $(ROOT_DIR)/hack/central-repo/"; \ + TAR_BZ2_FILE:=$(shell cygpath -w $(ROOT_DIR)/hack/central-repo/local-central-repo-testcontent.bz2) - $(TAR) xjf ${TAR_BZ2_FILE} -C $(ROOT_DIR)/hack/central-repo/;\ + $(TAR) xjf "$$TAR_BZ2_FILE" -C "$(ROOT_DIR)/hack/central-repo/"; \ fi echo "Adding docker test central repo cert to the config file" TANZU_CLI_CEIP_OPT_IN_PROMPT_ANSWER="No" TANZU_CLI_EULA_PROMPT_ANSWER="Yes" $(ROOT_DIR)/bin/tanzu config cert delete localhost:9876 || true