summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/doman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/doman b/bin/doman
index 9af326666..61040469f 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}"