summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/doman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/doman b/bin/doman
index 9af32666..61040469 100755
--- a/bin/doman
+++ b/bin/doman
@@ -40,7 +40,7 @@ for x in "$@" ; do
fi
- if echo ${mandir} | egrep -q 'man[0-9n](|f|p|pm)$' -; then
+ if [[ ${mandir} =~ man[0-9n](|f|p|pm)$ ]] ; then
if [[ -s ${x} ]] ; then
if [[ ! -d ${D}/usr/share/man/${mandir} ]] ; then
install -d "${D}/usr/share/man/${mandir}"