From f4c582a7b3fc2e2fe0e0ee8b2203d66d263d6ee5 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Fri, 29 Jan 2016 14:41:25 -0800 Subject: [PATCH] Don't need sudo when DOCKER_HOST is tcp. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a2759992d..25ccba24e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: all deps static clean client-lint client-test client-sync backend frontend shell lint # If you can use Docker without being root, you can `make SUDO= ` -SUDO=sudo -E +SUDO=$(shell (echo "$$DOCKER_HOST" | grep "tcp://" >/dev/null) || echo "sudo -E") DOCKERHUB_USER=weaveworks SCOPE_EXE=prog/scope SCOPE_IMAGE=$(DOCKERHUB_USER)/scope