download_and_compile.sh: fix detection of whether dctrl-tools is installed
Typical output of: dpkg-query --showformat='${Status}\n' --show dctrl-tools is: install ok installed (three words, not one). Thanks to wkitty42 for the report.
This commit is contained in:
parent
c1a00bb944
commit
bcb4eb6064
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ fi
|
|||
|
||||
# Ensure 'dctrl-tools' is installed
|
||||
if [[ "$(dpkg-query --showformat='${db:Status-Status}\n' --show dctrl-tools \
|
||||
2>/dev/null)" != "installed" ]]; then
|
||||
2>/dev/null | awk '{print $3}') " != "installed" ]]; then
|
||||
if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then
|
||||
_aptInstall dctrl-tools
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue