diff --git a/install.sh b/install.sh index 31a033b..0a33aeb 100755 --- a/install.sh +++ b/install.sh @@ -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