From cb264456ddc7c0df50f5629ffa27e7ed75112ab2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 28 May 2008 00:37:22 +0000 Subject: [PATCH] Convert doman to use bash's =~ operator instead of calling egrep. svn path=/main/trunk/; revision=10460 --- bin/doman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- 2.26.2