From fdccc7b1967bd496231c0881708c1223c94629be Mon Sep 17 00:00:00 2001 From: EveningStarlight Date: Mon, 23 Dec 2024 11:26:15 -0500 Subject: [PATCH] fix: if no command chaining --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 974e094ea..c3897b6c1 100644 --- a/Makefile +++ b/Makefile @@ -84,8 +84,9 @@ build/%: ## build the latest image BUILDKIT=0; \ else \ BUILDKIT=1; \ - fi && \ - REPO=$$(echo "$(REPO)" | sed 's:/*$$:/:' | sed 's:^\s*/*\s*$$::'); \ # End repo with exactly one trailing slash, unless it is empty + fi + # End repo with exactly one trailing slash, unless it is empty + REPO=$$(echo "$(REPO)" | sed 's:/*$$:/:' | sed 's:^\s*/*\s*$$::') && \ IMAGE_NAME="$${REPO}$(notdir $@):$(TAG)" && \ DOCKER_BUILDKIT=$$BUILDKIT docker build $(DARGS) --rm --force-rm -t $$IMAGE_NAME ./images/$(DIRECTORY) && \ echo -n "Built image $$IMAGE_NAME of size: " && \