From e836a3c0c61d1fff910e1391504cc97a1e511ba4 Mon Sep 17 00:00:00 2001 From: jahway603 Date: Tue, 20 Sep 2022 01:21:13 -0400 Subject: [PATCH] fixed help2man check --- util/gen-manpages.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/util/gen-manpages.sh b/util/gen-manpages.sh index fadeed274..8729932ab 100755 --- a/util/gen-manpages.sh +++ b/util/gen-manpages.sh @@ -11,17 +11,8 @@ HUSHCLI=${HUSHCLI:-$SRCDIR/hush-cli} HUSHTX=${HUSHTX:-$SRCDIR/hush-tx} [ ! -x $HUSHD ] && echo "$HUSHD not found or not executable." && exit 1 - -# TODO: this does not work correctly, when help2man is installed, it still fails -# Check if help2man is installed -# If not then display error to user and exit -#if ! command -v help2man &> /dev/null -#then -# echo "help2man could not be found" -# echo "Please install from your Linux package manager and try again" -# echo "On Debian-based systems you can do: apt-get install help2man" -# exit -#fi +# Check if help2man is installed & if not then display error to user and exit +[ ! -x "$(command -v help2man)" ] && echo "help2man could not be found" && echo "Please install from your Linux package manager and try again" && echo "On Debian-based systems you can do: apt-get install help2man" && exit 1 # use this if hushd is not running #HUSHVER="v3.6.2"