forked from ungleich-public/cdist
indent + simplify
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
48f3252de5
commit
6afcb0e9ee
2 changed files with 15 additions and 15 deletions
|
@ -52,7 +52,8 @@ esac
|
|||
|
||||
aptget="DEBIAN_FRONTEND=noninteractive apt-get --quiet --yes"
|
||||
|
||||
if [ "$state_is" != "$state_should" ]; then
|
||||
[ "$state_is" = "$state_should" ] && exit 0
|
||||
|
||||
case "$state_should" in
|
||||
present)
|
||||
echo $aptget install \"$name\"
|
||||
|
@ -65,4 +66,3 @@ if [ "$state_is" != "$state_should" ]; then
|
|||
exit 1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
|
@ -53,7 +53,7 @@ else
|
|||
fi
|
||||
|
||||
# Exit if nothing is needed to be done
|
||||
[ "$state_is" = "$state_should ] && exit 0
|
||||
[ "$state_is" = "$state_should" ] && exit 0
|
||||
|
||||
case "$state_should" in
|
||||
present)
|
||||
|
|
Loading…
Reference in a new issue