use shortcut version in __package_opkg

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-07-10 14:16:56 +02:00
parent 14a7317bee
commit ff50a61344

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# 2011 Nico Schottelius (nico-cdist at schottelius.org)
# 2011,2013 Nico Schottelius (nico-cdist at schottelius.org)
# 2012 Giel van Schijndel (giel plus cdist at mortis dot eu)
#
# This file is part of cdist.
@ -42,7 +42,8 @@ case "$state_is" in
;;
esac
if [ "$state_is" != "$state_should" ]; then
[ "$state_is" = "$state_should" ] && exit 0
case "$state_should" in
present)
if [ "$present" = "notpresent" ]; then
@ -58,4 +59,3 @@ if [ "$state_is" != "$state_should" ]; then
exit 1
;;
esac
fi