mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-29 10:24:11 +01:00
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:
parent
6bca567933
commit
166fe433e6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue