From f093b41f09ab18459a75c86c0a896aa36432803b Mon Sep 17 00:00:00 2001 From: Jörg Sommer Date: Tue, 23 May 2023 18:25:41 +0200 Subject: 51776: run-help-openssl: Reduce code and use new manpages Openssl switches the naming of manpages to the common style openssl-$SUBCOMMAND, e.g. openssl-enc. For backward compatibility try to show the manpage with the old name if the new one doesn't exist. --- Functions/Misc/run-help-openssl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Functions') diff --git a/Functions/Misc/run-help-openssl b/Functions/Misc/run-help-openssl index c528418c8..e4e45070e 100644 --- a/Functions/Misc/run-help-openssl +++ b/Functions/Misc/run-help-openssl @@ -1,7 +1 @@ - -if [ $# -eq 0 ]; then - man openssl -else - man $1 -fi - +man openssl${1:+-$1} || man ${1:-openssl} -- cgit v1.2.3