From 5930a123d27c086a27ee05f8fbdf0a8445b07caf Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 31 Mar 2024 17:57:46 +0200 Subject: [PATCH] Remove _check_incompatible_distro --- installers/common.sh | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index 2a3360af..65d93b5e 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -139,27 +139,6 @@ function _get_linux_distro() { _install_status 1 "Unsupported Linux distribution" exit 0 fi - - _check_incompatible_distro "$OS" -} - -# Checks for incompatible Desktop distros -function _check_incompatible_distro() { - local distro="$1" - local status_err="Unsupported Desktop distro detected. Please see the docs." - echo "OS compatibility check" - if [ "$distro" == "Debian" ]; then - if ! dpkg-query -W -f='${Status}' raspberrypi-ui-mods 2>/dev/null | grep -q 'not-installed'; then - _install_status 1 "$status_err" - exit 0 - fi - elif [ "$distro" == "Ubuntu" ]; then - if ! dpkg-query -W -f='${Status}' ubuntu-desktop 2>/dev/null | grep -q 'not-installed'; then - _install_status 1 "$status_err" - exit 0 - fi - fi - _install_status 0 } # Sets php package option based on Linux version, abort if unsupported distro