forked from evolix/evocheck
Fix is_installed function to work on OpenBSD
This commit is contained in:
parent
477c15df8a
commit
12ccfa914b
|
@ -97,7 +97,7 @@ END
|
||||||
|
|
||||||
is_installed(){
|
is_installed(){
|
||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
dpkg -l "$pkg" 2> /dev/null | grep -q -E '^(i|h)i' || return 1
|
pkg_info | grep -q $pkg || return 1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue