Skip to content

Commit 9f6b0aa

Browse files
authored
Don't Require root privileges when destdir is set
1 parent 38cd2fa commit 9f6b0aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TEMP_DIR = ./temp
2222
.PHONY: install uninstall clean help
2323

2424
install:
25-
@if test "$(shell id -u)" != 0; then \
25+
@if test "$(shell id -u)" != 0 -a -z "$(DESTDIR)"; then \
2626
echo "You are not root, run this target as root please."; \
2727
exit 1; \
2828
fi

0 commit comments

Comments
 (0)