From 74409ea977d6a18ff206689a2eed67f722722f76 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 13 Oct 2022 16:42:44 +0200 Subject: Allow running on X-less setups --- core/includes/distribution.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'core/includes/distribution.inc') diff --git a/core/includes/distribution.inc b/core/includes/distribution.inc index e64ace1f..b1cbc288 100644 --- a/core/includes/distribution.inc +++ b/core/includes/distribution.inc @@ -48,6 +48,7 @@ detect_distribution () { detect_ubuntu_lts () { local TMP=$(dpkg -S /usr/bin/Xorg) + [ -z "$TMP" ] && return [[ "$TMP" == xserver-xorg* ]] || perror "Could not detect xserver package version (returned: $TMP)" TMP=${TMP%: *} TMP=${TMP#xserver-xorg-core} -- cgit v1.2.3-55-g7522