setup state_is

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-02-16 23:16:26 +01:00
parent 272c12e3f7
commit 76a3c20669
1 changed files with 6 additions and 1 deletions

View File

@ -42,7 +42,12 @@ case "$state_should" in
;;
esac
is_installed="$(grep "(installed)" "$__object/explorer/pkg_status" || true)"
if grep -q "(installed)" "$__object/explorer/pkg_status"; then
state_is="present"
else
state_is="absent"
fi
case "$state" in
installed)