Makefile: fix sudo make install
When there isn't a `go` outside of the user's PATH Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
caa1de319e
commit
ac28fee304
4
Makefile
4
Makefile
@ -9,7 +9,11 @@ VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always)
|
||||
|
||||
PKG=github.com/containerd/containerd
|
||||
|
||||
ifneq "$(strip $(shell command -v go 2>/dev/null))" ""
|
||||
GOOS ?= $(shell go env GOOS)
|
||||
else
|
||||
GOOS ?= $$GOOS
|
||||
endif
|
||||
WHALE = "🐳"
|
||||
ONI = "👹"
|
||||
ifeq ("$(OS)", "Windows_NT")
|
||||
|
Loading…
Reference in New Issue
Block a user