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