Suppress dpkg-query error on non-Debian systems.

This commit is contained in:
David Tomaschik
2016-04-12 21:12:18 -07:00
parent 33223e5af0
commit b076afb811

View File

@@ -269,7 +269,7 @@ if [[ ! -d $BASEDIR ]] ; then
exit 1
fi
if which dpkg-query > /dev/null ; then
if which dpkg-query > /dev/null 2>&1 ; then
HAVE_X=`dpkg-query -s xserver-xorg 2>/dev/null | grep -c 'Status.*installed'`
else
HAVE_X=0