mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Fix HAVE_X error.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user