add -i switch to grep in gen_search_package for case insensitive searches

This commit is contained in:
chess.griffin 2008-08-12 13:12:33 +00:00
parent 98fdb52d1d
commit cce0fe45e3

View File

@ -580,7 +580,7 @@ gen_search_package () {
# interface, jump to selected package.
cd $LOCALREPO/$SLACKVER
PKG=$1
RESULTS=$(find . -mindepth 2 -maxdepth 2 -type d | grep $PKG | sed -e 's/.\///')
RESULTS=$(find . -mindepth 2 -maxdepth 2 -type d | grep -i $PKG | sed -e 's/.\///')
if [ -n "$RESULTS" ]; then
if [ "$DIAG" = 1 ]; then
for i in $RESULTS; do