From 212756646efa85880a6b50aa7cb404e402c2ae4a Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Sun, 1 Mar 2009 21:08:33 +0100 Subject: make man page (un)install more portable --- source4/script/installman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/script/installman.sh') diff --git a/source4/script/installman.sh b/source4/script/installman.sh index ae99bceacf..a3b6ec0d93 100755 --- a/source4/script/installman.sh +++ b/source4/script/installman.sh @@ -6,7 +6,7 @@ MANPAGES=$* for I in $MANPAGES do - SECTION=`echo $I | grep -o '.$'` + SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/" DIR="$MANDIR/man$SECTION" if [ ! -d "$DIR" ] then -- cgit