download_and_compile.sh: other fix for the dpkg-query invocation
Thanks to wkitty42 for pointing it out!
This commit is contained in:
@@ -312,7 +312,7 @@ if [[ "$DOWNLOAD_PACKAGES" = "y" ]] && [[ "$APT_GET_UPDATE" = "y" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure 'dctrl-tools' is installed
|
# 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
|
2>/dev/null | awk '{print $3}')" != "installed" ]]; then
|
||||||
if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then
|
if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then
|
||||||
_aptInstall dctrl-tools
|
_aptInstall dctrl-tools
|
||||||
|
|||||||
Reference in New Issue
Block a user