Skip to content

Commit

Permalink
Fix problem with spaces in $PATH (#1823)
Browse files Browse the repository at this point in the history
* Fix problem with spaces in $PATH

Signed-off-by: steigr <[email protected]>

* Fix issue with literal quotes and first/last path

* Polish
  • Loading branch information
steigr authored Aug 27, 2020
1 parent 401d52f commit 4653bfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ GOROOT:=
GO111MODULE=on
export PATH GOROOT GO111MODULE
# work around broken PATH export
SHELL:=env PATH=$(PATH) $(SHELL)
SPACE:=$(subst ,, )
SHELL:=env PATH=$(subst $(SPACE),\$(SPACE),$(PATH)) $(SHELL)
################################################################################
# ============================== OPTIONS =======================================
# install tool
Expand Down Expand Up @@ -100,4 +101,4 @@ lint:
shellcheck:
hack/make-rules/verify/shellcheck.sh
#################################################################################
.PHONY: all kind build install unit clean update generate gofmt verify lint shellcheck
.PHONY: all kind build install unit clean update generate gofmt verify lint shellcheck

0 comments on commit 4653bfa

Please sign in to comment.