Commit 5a34fdda authored by Cyril Brulebois's avatar Cyril Brulebois

Simplify testing the presence of geoclue* packages.

Use grep's return code in quiet mode instead of counting matches.
parent c716db66
......@@ -62,7 +62,7 @@ apt-get --yes purge \
### Deinstall some other unwanted packages whose regexp might not be match
### anything when building with partial, tagged APT snapshots.
if [ $(dpkg --get-selections | grep -c -E '^geoclue') -gt 0 ]; then
if dpkg --get-selections | grep -qs -E '^geoclue'; then
apt-get --yes purge '^geoclue*'
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment