From: Zac Medico Date: Wed, 28 May 2008 00:37:22 +0000 (-0000) Subject: Convert doman to use bash's =~ operator instead of calling egrep. X-Git-Tag: v2.2_pre8~86 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cb264456ddc7c0df50f5629ffa27e7ed75112ab2;p=portage.git Convert doman to use bash's =~ operator instead of calling egrep. svn path=/main/trunk/; revision=10460 --- 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}"