Only update manpages if dir exists
This commit is contained in:
parent
7a1853a524
commit
0787908d1b
1 changed files with 5 additions and 4 deletions
|
@ -45,7 +45,8 @@ then
|
||||||
rm -f $PI
|
rm -f $PI
|
||||||
fi
|
fi
|
||||||
|
|
||||||
makewhatis /usr/man
|
for d in /usr/man /usr/local/man /usr/gnu/man /usr/X11R6/man
|
||||||
makewhatis /usr/local/man
|
do if [ -d "$d" ]
|
||||||
makewhatis /usr/gnu/man
|
then makewhatis $d
|
||||||
makewhatis /usr/X11R6/man
|
fi
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue