Make sure weare on a debian system when using dpkg-query to check fo X.

This commit is contained in:
David Tomaschik
2015-10-03 13:00:37 -07:00
parent 8e55e1dbe9
commit b16daa5da6

View File

@@ -13,7 +13,11 @@ if [ ! -d $BASEDIR ] ; then
exit 1 exit 1
fi fi
if which dpkg-query > /dev/null ; then
HAVE_X=`dpkg-query -s xserver-xorg | grep -c 'Status.*installed'` HAVE_X=`dpkg-query -s xserver-xorg | grep -c 'Status.*installed'`
else
HAVE_X=0
fi
function prerequisites { function prerequisites {
# Prerequisites require git # Prerequisites require git