]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
scripts/bash_aliases: pdfman(): Don't have custom error message
authorAlejandro Colomar <alx@kernel.org>
Sun, 3 Nov 2024 11:04:47 +0000 (12:04 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 3 Nov 2024 11:04:47 +0000 (12:04 +0100)
Run man(1) transparently, and let it report the error.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
scripts/bash_aliases

index a953b15489bee5369bceb16a4b56d908215f27cf..bd6829409ba3d72fbaf84b692613c88e8d0a4afd 100644 (file)
@@ -93,11 +93,6 @@ man_lsvar()
 
 pdfman()
 {
-       if [ $# -eq 0 ]; then
-               >&2 echo "Usage: ${FUNCNAME[0]} [man(1) options] [section] page";
-               return $EX_USAGE;
-       fi;
-
        local tmp="$(mktemp -t "${!###*/}.XXXXXX")";
 
        man -Tpdf "$@" >"$tmp";