From d75a07ccb2b52427137ddf8d8d7591d0d9cfcfe3 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Tue, 26 May 2020 15:58:52 +0200 Subject: [PATCH] Fix check packages command The dpkg -l command always exits with 0, we should use the -s option instead that exits with 1 if the package is not installed. Change-Id: I656b111b77b637a10c9a94fd3880aee377c166f1 --- scripts/install-deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index dfe860eb9..d5fd75e7e 100644 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -38,7 +38,7 @@ case ${ID,,} in OS_FAMILY="Debian" export DEBIAN_FRONTEND=noninteractive INSTALLER_CMD="sudo -H -E apt-get -y install" - CHECK_CMD="dpkg -l" + CHECK_CMD="dpkg -s" PKG_MAP=( [python3]=python3-minimal [python3-devel]=libpython3-dev