summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKyle D <kdumontnu@gmail.com>2022-02-05 11:31:57 -0700
committerGitHub <noreply@github.com>2022-02-05 18:31:57 +0000
commita51d2114c7c0472cf20459dd8916bf48d529ae83 (patch)
treee57c4b7b39149513293b128cd8838c758cec2703 /Makefile
parent933e819165acde362d5d9ab72c3bcf7c9b399ae6 (diff)
downloadgitea-a51d2114c7c0472cf20459dd8916bf48d529ae83.tar.gz
gitea-a51d2114c7c0472cf20459dd8916bf48d529ae83.zip
quote MAKE to prevent path expansion with space error (#18622)
Pretty minor change to prevent error when `$(MAKE)` path is expanded with a space in the path. ```bash $ TAGS="bindata sqlite sqlite_unlock_notify" make build /usr/bin/sh: -c: line 0: syntax error near unexpected token `(' /usr/bin/sh: -c: line 0: `C:/Program Files (x86)/GnuWin32/bin/make -v | head -n 1' ``` I believe Program Files (x86) is the default path for GNU make on windows
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3c4a991fd2..88e08c1e70 100644
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@ endif
EXTRA_GOFLAGS ?=
-MAKE_VERSION := $(shell $(MAKE) -v | head -n 1)
+MAKE_VERSION := $(shell "$(MAKE)" -v | head -n 1)
MAKE_EVIDENCE_DIR := .make_evidence
ifeq ($(RACE_ENABLED),true)