man: Use $LIVE_BUILD if set

The '--help' option will show the updated manpage if LIVE_BUILD is set
This commit is contained in:
Roland Clobus 2024-11-06 11:31:14 +01:00
parent e4168673d1
commit 0bf71641ef
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@
Man ()
{
if command -v man >/dev/null; then
man ${PROGRAM}
if [ -n "${LIVE_BUILD}" -a -e "${LIVE_BUILD}/manpages/en/lb_${PROGRAM#lb }.1" ]; then
man ${LIVE_BUILD}/manpages/en/lb_${PROGRAM#lb }.1
else
man ${PROGRAM}
fi
else
Echo_warning "man is not installed, falling back to usage output."
Usage