summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-04-09 20:04:52 +0200
committerDaniel Baumann <daniel@debian.org>2010-04-09 21:28:47 +0200
commit684e14653f0a0f59492ce6d0a2a3245e511a62cb (patch)
tree06497f562af86e3d1d0cb584ed823c99fefad9ab /helpers
parenta83218fe70a39d15d4db5ac7703fe72adf1772bd (diff)
downloadvyos-live-build-684e14653f0a0f59492ce6d0a2a3245e511a62cb.tar.gz
vyos-live-build-684e14653f0a0f59492ce6d0a2a3245e511a62cb.zip
Updating Man function to work with lh as wrapper.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh9
1 files changed, 8 insertions, 1 deletions
diff --git a/helpers/lh b/helpers/lh
index 73e7b0b93..f44634b5e 100755
--- a/helpers/lh
+++ b/helpers/lh
@@ -19,7 +19,14 @@ USAGE="FIXME"
case "${1}" in
-h|--help)
- Man
+ if [ -x "$(which man 2>/dev/null)" ]
+ then
+ man lh
+ exit 0
+ else
+ ${0} --usage
+ exit 0
+ fi
;;
""|-u|--usage)