Skip to content

Commit 96fe9e7

Browse files
jtkotbluca
authored andcommitted
packages.sh: check for /etc/debian_version existance rather than dpkg-query aviability
1 parent 954d9c7 commit 96fe9e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/packages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Check_installed ()
126126
INSTALL_STATUS=1
127127
fi
128128
else
129-
if command -v dpkg-query >/dev/null
129+
if [ -e /etc/debian_version ]
130130
then
131131
if dpkg-query -s "${PACKAGE}" 2> /dev/null | grep -qs "Status: install"
132132
then

0 commit comments

Comments
 (0)