From d7d563834ade87882828968acde738307ef06f5a Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 12 Aug 2021 12:14:04 +0200 Subject: [PATCH] Makefile: Avoid running "pandoc" as root --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 164c794..e984744 100644 --- a/Makefile +++ b/Makefile @@ -87,4 +87,5 @@ install: all .PHONY: all install clean %.1: %.md + @if [ "$$UID" = 0 ]; then echo "Please build (\`make\`) as non-root before running \`make install\` as root" >&2;exit 1;fi pandoc --standalone --to man $< -o $@