From b16daa5da6ccdc63477ec4d9dd039b87895dbd15 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sat, 3 Oct 2015 13:00:37 -0700 Subject: [PATCH] Make sure weare on a debian system when using dpkg-query to check fo X. --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 145d339..8e8c4d6 100755 --- a/install.sh +++ b/install.sh @@ -13,7 +13,11 @@ if [ ! -d $BASEDIR ] ; then exit 1 fi -HAVE_X=`dpkg-query -s xserver-xorg | grep -c 'Status.*installed'` +if which dpkg-query > /dev/null ; then + HAVE_X=`dpkg-query -s xserver-xorg | grep -c 'Status.*installed'` +else + HAVE_X=0 +fi function prerequisites { # Prerequisites require git