From 71cae3159ff5b0f59eb72cd09eb385cc352288f9 Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Fri, 9 Jun 2023 13:27:21 +0100 Subject: [PATCH] Makefile to force a shell when running command Address a build break on Ubuntu 20.04 in the Makefile whereby calling `command` fails Signed-off-by: Andy Edwards --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d5d3b1365f..474e5bc65e 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ ### # Default shell `/bin/sh` has different meanings depending on the platform. -SHELL := $(shell command -v bash) +SHELL := $(shell command -v bash;) GO ?= go GO_LDFLAGS:= $(shell if $(GO) version|grep -q gccgo ; then echo "-gccgoflags"; else echo "-ldflags"; fi) GOCMD = CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO)