From a1839c444bd25c9b560f786342a29b70195fa7d9 Mon Sep 17 00:00:00 2001 From: Carl Tashian Date: Mon, 17 Aug 2020 11:00:44 -0700 Subject: [PATCH] Try using `test -f` instead of testing `docker buildx` directly --- make/docker.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/docker.mk b/make/docker.mk index eb7b1f7c..82c3d961 100644 --- a/make/docker.mk +++ b/make/docker.mk @@ -27,7 +27,7 @@ endif # Register buildx builder mkdir -p $$HOME/.docker/cli-plugins - docker buildx >/dev/null || \ + test -f $$HOME/.docker/cli-plugins/docker-buildx || \ (wget -O $$HOME/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.$(DOCKER_CLIENT_OS)-amd64 && \ chmod +x $$HOME/.docker/cli-plugins/docker-buildx)