setup state_is
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
272c12e3f7
commit
76a3c20669
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue