diff options
author | Jan Kot <janymalino@gmail.com> | 2021-01-13 13:18:40 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2021-01-13 12:39:07 +0000 |
commit | 96fe9e7ca979c768986948d8314479140e7fa63b (patch) | |
tree | 164b2860c80b0ffe20ea431e10e7db93162da84a | |
parent | 954d9c7c312317e46d5a7adc1d8e9fa5180a9426 (diff) | |
download | vyos-live-build-96fe9e7ca979c768986948d8314479140e7fa63b.tar.gz vyos-live-build-96fe9e7ca979c768986948d8314479140e7fa63b.zip |
packages.sh: check for /etc/debian_version existance rather than dpkg-query aviability
-rwxr-xr-x | functions/packages.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/packages.sh b/functions/packages.sh index 83d15e09e..9e25df5f3 100755 --- a/functions/packages.sh +++ b/functions/packages.sh @@ -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 |