From a177bfcd9ed28eab9964aaf79ce3095d9718bf39 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 27 May 2024 21:28:24 +0200 Subject: [PATCH] Suppress errors of the "man --version" command The man(1) command on macOS does not support any version output at all, for example. --- pdfman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfman b/pdfman index 0803f00..8ded8ed 100755 --- a/pdfman +++ b/pdfman @@ -48,7 +48,7 @@ while [[ $# -gt 0 ]]; do ;; "--version") echo "pdfman, version 1" >&2 - man --version + man --version 2>/dev/null exit 2 ;; -*) -- 2.39.2