summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-26 09:57:53 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-26 09:57:53 -0400
commitc61c6bc8a243baee98df3d704d00a571b7fd3587 (patch)
treeb685fad3b4def33772f0f3b64a7ef87a12fae6db
parentcb8993568d68a17fad301d6f210ce14737447977 (diff)
fix sudo detection
-rw-r--r--EndoForge/Makefile4
1 files 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
10 10
11ifeq ($(shell id -u),0) 11ifeq ($(shell id -u),0)
12SUDO = 12SUDO =
13HAVE_ROOT = y
13else 14else
14SUDO = sudo 15SUDO = sudo
16HAVE_ROOT != sudo -v && echo y || true
15endif 17endif
16 18
17HAVE_ROOT != $(SUDO) true && echo y || true
18
19USER != echo "$${SUDO_USER:-$$(id -un)}" 19USER != echo "$${SUDO_USER:-$$(id -un)}"
20 20
21BROWSER != 2>/dev/null which xdg-open || which w3m || which links || which elinks 21BROWSER != 2>/dev/null which xdg-open || which w3m || which links || which elinks