From 166fe433e63c436f60fd263ca59d26a98ff97f5b Mon Sep 17 00:00:00 2001 From: "mauro.giachero" Date: Thu, 22 Jan 2009 16:45:10 +0000 Subject: [PATCH] Use line matching with grep. Use the "-x" option with grep, instead of using "^$" in the regular expression. Thanks to Slakmagik for pointing this out. Signed-off-by: Mauro Giachero --- 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 705ebc3..95c005b 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -1390,7 +1390,7 @@ view_queue () { rm -f $WORKINGQUEUE cat $TMPQUEUE | while read PICK; do TESTAPP=$(echo $PICK | cut -f1 -d " ") - if $(cat $TMP/sbopkg-ans-queue | grep -q "^$TESTAPP\$"); then + if $(cat $TMP/sbopkg-ans-queue | grep -qx "$TESTAPP"); then echo $PICK | sed -e 's/OFF/ON/' >> $WORKINGQUEUE else echo $PICK | sed -e 's/ON/OFF/' >> $WORKINGQUEUE