mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Make sure weare on a debian system when using dpkg-query to check fo X.
This commit is contained in:
@@ -13,7 +13,11 @@ if [ ! -d $BASEDIR ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HAVE_X=`dpkg-query -s xserver-xorg | grep -c 'Status.*installed'`
|
if which dpkg-query > /dev/null ; then
|
||||||
|
HAVE_X=`dpkg-query -s xserver-xorg | grep -c 'Status.*installed'`
|
||||||
|
else
|
||||||
|
HAVE_X=0
|
||||||
|
fi
|
||||||
|
|
||||||
function prerequisites {
|
function prerequisites {
|
||||||
# Prerequisites require git
|
# Prerequisites require git
|
||||||
|
|||||||
Reference in New Issue
Block a user