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 <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-01-22 16:45:10 +00:00
parent 6bca567933
commit 166fe433e6

View file

@ -1390,7 +1390,7 @@ view_queue () {
rm -f $WORKINGQUEUE rm -f $WORKINGQUEUE
cat $TMPQUEUE | while read PICK; do cat $TMPQUEUE | while read PICK; do
TESTAPP=$(echo $PICK | cut -f1 -d " ") 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 echo $PICK | sed -e 's/OFF/ON/' >> $WORKINGQUEUE
else else
echo $PICK | sed -e 's/ON/OFF/' >> $WORKINGQUEUE echo $PICK | sed -e 's/ON/OFF/' >> $WORKINGQUEUE