From 9db6ad55aaf1ee474978fdce067a2a68c87631bd Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sat, 6 Jan 2018 13:40:33 -0800 Subject: [PATCH] Fix HAVE_X error. --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 66850e5..4655a67 100755 --- a/install.sh +++ b/install.sh @@ -304,7 +304,9 @@ if [[ ! -d $BASEDIR ]] ; then fi if which dpkg-query > /dev/null 2>&1 ; then - HAVE_X=`dpkg-query -s xserver-xorg 2>/dev/null | grep -c 'Status.*installed'` + HAVE_X=$(dpkg-query -s xserver-xorg 2>/dev/null | \ + grep -c 'Status.*installed' \ + || true) else HAVE_X=0 fi