Skip to content

Commit

Permalink
Merge pull request #47298 from thaJeztah/25.0_backport_rm_dash_rf
Browse files Browse the repository at this point in the history
[25.0 backport] Assert temp output directory is not an empty string
  • Loading branch information
thaJeztah committed Feb 1, 2024
2 parents 622e666 + 85f4e61 commit cf03e96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -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" .
Expand Down

0 comments on commit cf03e96

Please sign in to comment.