Skip to content

Commit

Permalink
Remove _check_incompatible_distro
Browse files Browse the repository at this point in the history
  • Loading branch information
billz committed Mar 31, 2024
1 parent 69387f1 commit 5930a12
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions installers/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5930a12

Please sign in to comment.