Browse Source

Merge pull request 'fixed help2man check' (#209) from jahway603 into dev

Reviewed-on: #209
pull/217/head
Duke Leto 2 years ago
parent
commit
9360cc3770
  1. 13
      util/gen-manpages.sh

13
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"

Loading…
Cancel
Save