From 8b4a6452451ce1f7e7ff338ed5f32e334e47dd84 Mon Sep 17 00:00:00 2001 From: Andrew Wilkins Date: Tue, 12 May 2020 08:43:17 +0800 Subject: [PATCH] Makefile: fix update-beats-module (#3785) Run `go list ...` in the shell, rather than in Make, to avoid premature expansion. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cae413f9053..e51190302b0 100644 --- a/Makefile +++ b/Makefile @@ -176,7 +176,7 @@ update-beats: update-beats-module update .PHONY: update-beats-module update-beats-module: go get -d -u $(BEATS_MODULE)@$(BEATS_VERSION) - rsync -crv --delete $(shell go list -m -f {{.Dir}} $(BEATS_MODULE))/testing/environments testing/ + rsync -crv --delete $$(go list -m -f {{.Dir}} $(BEATS_MODULE))/testing/environments testing/ ############################################################################## # Kibana synchronisation.