indent + simplify

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-02-16 23:34:22 +01:00
parent 48f3252de5
commit 6afcb0e9ee
2 changed files with 15 additions and 15 deletions

View File

@ -52,8 +52,9 @@ esac
aptget="DEBIAN_FRONTEND=noninteractive apt-get --quiet --yes" aptget="DEBIAN_FRONTEND=noninteractive apt-get --quiet --yes"
if [ "$state_is" != "$state_should" ]; then [ "$state_is" = "$state_should" ] && exit 0
case "$state_should" in
case "$state_should" in
present) present)
echo $aptget install \"$name\" echo $aptget install \"$name\"
;; ;;
@ -64,5 +65,4 @@ if [ "$state_is" != "$state_should" ]; then
echo "Unknown state: $state_should" >&2 echo "Unknown state: $state_should" >&2
exit 1 exit 1
;; ;;
esac esac
fi

View File

@ -53,7 +53,7 @@ else
fi fi
# Exit if nothing is needed to be done # Exit if nothing is needed to be done
[ "$state_is" = "$state_should ] && exit 0 [ "$state_is" = "$state_should" ] && exit 0
case "$state_should" in case "$state_should" in
present) present)