summaryrefslogtreecommitdiff
path: root/source4/script/uninstallman.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script/uninstallman.sh')
-rwxr-xr-xsource4/script/uninstallman.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/script/uninstallman.sh b/source4/script/uninstallman.sh
index 72b523ed9e..9b087c68bb 100755
--- a/source4/script/uninstallman.sh
+++ b/source4/script/uninstallman.sh
@@ -8,7 +8,7 @@ MANPAGES=$*
for I in $MANPAGES
do
- SECTION=`echo $I | grep -o '.$'`
+ SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/"
FNAME=$MANDIR/man$SECTION/$I
if test -f $FNAME; then
echo Deleting $FNAME