From 9f6b0aa8433091ec6af4a7da482aa4db6d848178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luan=20Vitor=20Simi=C3=A3o=20Oliveira?= Date: Mon, 31 Aug 2026 16:56:51 -0300 Subject: [PATCH] Don't Require root privileges when destdir is set --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e1cd0fa..6a79ce4 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ TEMP_DIR = ./temp .PHONY: install uninstall clean help install: - @if test "$(shell id -u)" != 0; then \ + @if test "$(shell id -u)" != 0 -a -z "$(DESTDIR)"; then \ echo "You are not root, run this target as root please."; \ exit 1; \ fi