Hide output if package doesn't exists

merge-requests/18/head
g0t mi1k 2 months ago
parent 3d6141b877
commit 82780ef866

@ -114,7 +114,7 @@ require_package() {
local required_version=$2
local pkg_version=
pkg_version=$(dpkg-query -f '${Version}' -W $pkg || true)
pkg_version=$(dpkg-query -f '${Version}' -W $pkg 2>/dev/null || true)
if [ -z "$pkg_version" ]; then
echo "ERROR: You need $pkg, but it is not installed" >&2
exit 1

Loading…
Cancel
Save