From 94a8012cda43a5ae7375fccc98fefeafee134c8d 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 164c7948..04806dc4 100644 --- a/Makefile +++ b/Makefile @@ -87,4 +87,5 @@ install: all .PHONY: all install clean %.1: %.md + @if [ "$$UID" = 0 ]; then echo "Please build as non-root before running \`make install\` as root" >&2;exit 1;fi pandoc --standalone --to man $< -o $@