From 0fe64864d4882a713652e43751552c781bdf418b Mon Sep 17 00:00:00 2001 From: Robin Breathe Date: Wed, 17 Apr 2024 14:25:08 +0200 Subject: [PATCH] fix: gracefully handle PATH with whitespace Signed-off-by: Robin Breathe --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 22844791..d1995d5c 100644 --- a/Makefile +++ b/Makefile @@ -188,7 +188,7 @@ TMP_DIR=$$(mktemp -d) ;\ cd $$TMP_DIR ;\ go mod init tmp ;\ echo "Downloading $(2)" ;\ -env -i bash -c "GOBIN=$(GOBIN) PATH=$(PATH) GOPATH=$(shell go env GOPATH) GOCACHE=$(shell go env GOCACHE) go install $(2)" ;\ +env -i bash -c "GOBIN=$(GOBIN) PATH=\"$(PATH)\" GOPATH=$(shell go env GOPATH) GOCACHE=$(shell go env GOCACHE) go install $(2)" ;\ rm -rf $$TMP_DIR ;\ } endef