From b076afb811f77833895e21e078c08b88581fe06f Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Tue, 12 Apr 2016 21:12:18 -0700 Subject: [PATCH] Suppress dpkg-query error on non-Debian systems. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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