From c61c6bc8a243baee98df3d704d00a571b7fd3587 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 26 Oct 2021 09:57:53 -0400 Subject: fix sudo detection --- EndoForge/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EndoForge/Makefile b/EndoForge/Makefile index 4619d49..69b3066 100644 --- a/EndoForge/Makefile +++ b/EndoForge/Makefile @@ -10,12 +10,12 @@ endif ifeq ($(shell id -u),0) SUDO = +HAVE_ROOT = y else SUDO = sudo +HAVE_ROOT != sudo -v && echo y || true endif -HAVE_ROOT != $(SUDO) true && echo y || true - USER != echo "$${SUDO_USER:-$$(id -un)}" BROWSER != 2>/dev/null which xdg-open || which w3m || which links || which elinks -- cgit v1.2.3