From 40b3277c09976af5b008d9a09fb09ff6e96c0cc4 Mon Sep 17 00:00:00 2001 From: radikal Date: Thu, 16 Jul 2020 00:27:59 +0200 Subject: [PATCH] manpath correction --- install.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index f8e2142..cee5b2e 100755 --- a/install.sh +++ b/install.sh @@ -11,14 +11,13 @@ echo "======================" echo " Installing lch" echo "======================" echo "" -mkdir -p /usr/bin cp lch /usr/bin/lch chmod 755 /usr/bin/lch echo " Copied lch in /usr/bin" -mkdir -p /usr/man/man1 -cp lch.1 /usr/man/man1/lch.1 -gzip /usr/man/man1/lch.1 -chmod 644 /usr/man/man1/lch.1.gz +MANDIR=echo ${MANPATH%%:*} +cp lch.1 $MANDIR/lch.1 +gzip $MANDIR/lch.1 +chmod 644 $MANDIR/lch.1.gz echo " Copied manpage in /usr/man/man1" echo "" echo "============================="