From 964e3ac2855e997420f334e98250f86ae4681c9c Mon Sep 17 00:00:00 2001 From: Igor Kolokolnikov Date: Tue, 15 Sep 2026 20:52:29 -0700 Subject: [PATCH] Improve the install target. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 21463f0..ed2378f 100644 --- a/Makefile +++ b/Makefile @@ -89,8 +89,9 @@ run: @ clear; ./$(EXE) install: - chmod u+s ./$(EXE) - mv ./$(EXE) /usr/local/bin + @ [ "$$(id -u)" = "0" ] && \ + chmod u+s ./$(EXE) && \ + cp ./$(EXE) /usr/local/bin clean: @ rm -rf $(EXE) $(EXE).dSYM