summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-19 06:13:51 +0000
committerLuca Boccassi <bluca@debian.org>2020-03-19 22:42:01 +0000
commit0e090a65e394c7c9c717780e4b8015844de43cb4 (patch)
treed8567bf28d223f003cc2cd2e0f2f7ead17e3f48a /functions
parent406accfab9fde49a1b01c314532d8b5e86e976a0 (diff)
downloadvyos-live-build-0e090a65e394c7c9c717780e4b8015844de43cb4.tar.gz
vyos-live-build-0e090a65e394c7c9c717780e4b8015844de43cb4.zip
fix -h|--help component script man page redirection
the frontend handles -h|--help directly and correctly redirects to the man page. component scripts however fail to load the correct manpage because they are being directed to `man <script>` instead of `man lb script`. (affects the top level commands and major build stages which actually have man pages; the low level components don't and so will always fail anyway).
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/man.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/man.sh b/functions/man.sh
index cb886fba1..06b51a7d4 100755
--- a/functions/man.sh
+++ b/functions/man.sh
@@ -13,7 +13,7 @@ Man ()
{
if [ $(which man) ]
then
- man $(basename ${0})
+ man ${PROGRAM} $(basename ${0})
exit 0
fi
}