From cac444fd517caecafd02ee05c24c72ba81c69a16 Mon Sep 17 00:00:00 2001 From: Igor Kolokolnikov Date: Tue, 15 Sep 2026 20:51:16 -0700 Subject: [PATCH] Improve the install target. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 374072b..f1fed41 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,8 @@ run: @ clear; ./$(EXE) install: - mv ./$(EXE) /usr/local/bin + @ [ "$$(id -u)" = "0" ] && \ + cp ./$(EXE) /usr/local/bin clean: @ rm -rf $(EXE) $(EXE).dSYM