grep fixed string

This commit is contained in:
ander 2017-07-02 11:51:59 +03:00
parent c052e507eb
commit e4d9f78349
2 changed files with 2 additions and 2 deletions

View file

@ -25,6 +25,6 @@ else
fi
dpkg-query --show --showformat '${Status}' "$name" 2>/dev/null \
| grep -q 'ok installed' \
| grep -Fq 'ok installed' \
&& echo 0 \
|| echo 1

View file

@ -24,4 +24,4 @@ else
name="$__object_id"
fi
apt-mark showhold | grep -q "$name" && echo hold || echo unhold
apt-mark showhold | grep -Fq "$name" && echo hold || echo unhold