From 12ccfa914ba2baaa3892c68b0de42652464ac180 Mon Sep 17 00:00:00 2001 From: Tristan PILAT Date: Mon, 25 Mar 2019 17:49:22 +0100 Subject: [PATCH] Fix is_installed function to work on OpenBSD --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 21df006..ce02c7c 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -97,7 +97,7 @@ END is_installed(){ 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 }