Merge pull request #18837 from andyedwardsibm/main

Makefile to force a shell when running command
This commit is contained in:
OpenShift Merge Robot 2023-06-10 07:02:41 -04:00 committed by GitHub
commit 6856c7717d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)