packages.sh: check for /etc/debian_version existance rather than dpkg-query aviability

This commit is contained in:
Jan Kot 2021-01-13 13:18:40 +01:00 committed by Luca Boccassi
parent 954d9c7c31
commit 96fe9e7ca9
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ Check_installed ()
INSTALL_STATUS=1
fi
else
if command -v dpkg-query >/dev/null
if [ -e /etc/debian_version ]
then
if dpkg-query -s "${PACKAGE}" 2> /dev/null | grep -qs "Status: install"
then