From 99d39587152deef8de232cc28ec6fe453b9568c9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 23 Aug 2025 21:17:40 -0400 Subject: Check if user can write to dir instead of checking for owner --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" "$$@"; \ -- cgit v1.2.3