aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2fc19ada..767a1652 100644
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ LDLIBS=-lgc -lm -lunistring -lgmp
LIBTOMO_FLAGS=-shared
DEFINE_AS_OWNER=as_owner() { \
- if [ "$$USER" = "$(OWNER)" ]; then \
+ if [ -w '$(PREFIX)' ]; then \
"$$@"; \
else \
$(SUDO) -u "$(OWNER)" "$$@"; \