diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-23 21:17:40 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-23 21:17:40 -0400 |
| commit | 99d39587152deef8de232cc28ec6fe453b9568c9 (patch) | |
| tree | f8bee2cd44442deed41121c243dd6ad499be134a /Makefile | |
| parent | fde120bfe075ec47e7739faca8449f85b29156fd (diff) | |
Check if user can write to dir instead of checking for owner
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)" "$$@"; \ |
