From 03814d07d82b3286aeac5425921c4d5e3cad08bf Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Tue, 12 Aug 2008 17:33:43 +0000 Subject: [PATCH] modify the search code (swap grep for -iname) which eliminates false positives; thanks to Erik Hanson for the fix --- src/usr/bin/sbopkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index 21698b3..1eb2157 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -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 -i $PKG | sed -e 's/.\///') +RESULTS=$(find . -mindepth 2 -maxdepth 2 -type d -iname "*$PKG*" | sed -e 's/.\///') if [ -n "$RESULTS" ]; then if [ "$DIAG" = 1 ]; then for i in $RESULTS; do