packages.sh: check for /etc/debian_version existance rather than dpkg-query aviability
This commit is contained in:
parent
954d9c7c31
commit
96fe9e7ca9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue