Skip to content

Commit

Permalink
Merge pull request #47586 from vvoland/v25.0-47569
Browse files Browse the repository at this point in the history
[25.0 backport] Makefile: generate-files: fix check for empty TMP_OUT
  • Loading branch information
thaJeztah committed Mar 19, 2024
2 parents 5901652 + 02d4ee3 commit 9df9ccc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Expand Up @@ -250,9 +250,10 @@ 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
@if [ -z "$($@_TMP_OUT)" ]; then \
echo "Temp dir is not set"; \
exit 1; \
fi
$(BUILD_CMD) --target "update" \
--output "type=local,dest=$($@_TMP_OUT)" \
--file "./hack/dockerfiles/generate-files.Dockerfile" .
Expand Down

0 comments on commit 9df9ccc

Please sign in to comment.