diff --git a/shared/macros/10-bash.jinja b/shared/macros/10-bash.jinja index acd692c86a4..b168183ddc8 100644 --- a/shared/macros/10-bash.jinja +++ b/shared/macros/10-bash.jinja @@ -1323,7 +1323,7 @@ done #}} {{%- macro bash_package_installed(pkgname) -%}} {{%- if pkg_manager == "apt_get" -%}} -dpkg-query --show --showformat='${db:Status-Status}\n' "{{{ pkgname }}}" 2>/dev/null | grep -q installed +dpkg-query --show --showformat='${db:Status-Status}\n' "{{{ pkgname }}}" 2>/dev/null | grep -q ^installed {{%- else -%}} rpm --quiet -q "{{{ pkgname }}}" {{%- endif -%}}