From c655b7dc78b3a0773f33f92e9c923a2e48e9c62b Mon Sep 17 00:00:00 2001 From: voloder <110066198+voloder@users.noreply.github.com> Date: Fri, 19 Jan 2024 22:17:13 +0100 Subject: [PATCH] Assert temp output directory is not an empty string Signed-off-by: voloder <110066198+voloder@users.noreply.github.com> --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 2986c1f5f8..99c8edbd57 100644 --- a/Makefile +++ b/Makefile @@ -250,6 +250,9 @@ swagger-docs: ## preview the API documentation .PHONY: generate-files generate-files: $(eval $@_TMP_OUT := $(shell mktemp -d -t moby-output.XXXXXXXXXX)) + ifeq ($($@_TMP_OUT),) + $(error Could not create temp directory.) + endif $(BUILD_CMD) --target "update" \ --output "type=local,dest=$($@_TMP_OUT)" \ --file "./hack/dockerfiles/generate-files.Dockerfile" .