From 06a640084fdf89ba72ecbd780b03ea50775964a8 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Wed, 20 Sep 2023 14:46:43 -0700 Subject: [PATCH] Fix graphdriver lookup in makefile When graphdriver is not provided the graphdriver is looked up from docker info, but without quotes it may fail and set the graphdriver to an incorrect value. Signed-off-by: Derek McGowan --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 627abb269b..6275f3e837 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ DOCKER ?= docker BUILDX ?= $(DOCKER) buildx # set the graph driver as the current graphdriver if not set -DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info -f {{ .Driver }} 2>&1)) +DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info -f '{{ .Driver }}' 2>&1)) export DOCKER_GRAPHDRIVER DOCKER_GITCOMMIT := $(shell git rev-parse HEAD)