mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Suppress dpkg-query error on non-Debian systems.
This commit is contained in:
@@ -269,7 +269,7 @@ if [[ ! -d $BASEDIR ]] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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'`
|
HAVE_X=`dpkg-query -s xserver-xorg 2>/dev/null | grep -c 'Status.*installed'`
|
||||||
else
|
else
|
||||||
HAVE_X=0
|
HAVE_X=0
|
||||||
|
|||||||
Reference in New Issue
Block a user