Fix HAVE_X error.

This commit is contained in:
David Tomaschik
2018-01-06 13:40:33 -08:00
parent 89aa4c1be2
commit 9db6ad55aa

View File

@@ -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