From 663eaaa65b0d52c0acf10fcd0a6ae529bd4a8b61 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Tue, 3 Oct 2017 13:30:04 +0200 Subject: [PATCH] download_and_compile.sh: other fix for the dpkg-query invocation Thanks to wkitty42 for pointing it out! --- download_and_compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_and_compile.sh b/download_and_compile.sh index b113621..0e43ff4 100755 --- a/download_and_compile.sh +++ b/download_and_compile.sh @@ -312,7 +312,7 @@ if [[ "$DOWNLOAD_PACKAGES" = "y" ]] && [[ "$APT_GET_UPDATE" = "y" ]]; then fi # Ensure 'dctrl-tools' is installed -if [[ "$(dpkg-query --showformat='${db:Status-Status}\n' --show dctrl-tools \ +if [[ "$(dpkg-query --showformat='${Status}\n' --show dctrl-tools \ 2>/dev/null | awk '{print $3}')" != "installed" ]]; then if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then _aptInstall dctrl-tools