From 6afcb0e9ee32794719cb0bc0f406eebdf3e62d1f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 16 Feb 2012 23:34:22 +0100 Subject: [PATCH] indent + simplify Signed-off-by: Nico Schottelius --- conf/type/__package_apt/gencode-remote | 28 +++++++++++------------ conf/type/__package_pacman/gencode-remote | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/conf/type/__package_apt/gencode-remote b/conf/type/__package_apt/gencode-remote index ed5ca5bb..f0c6090b 100755 --- a/conf/type/__package_apt/gencode-remote +++ b/conf/type/__package_apt/gencode-remote @@ -52,17 +52,17 @@ esac aptget="DEBIAN_FRONTEND=noninteractive apt-get --quiet --yes" -if [ "$state_is" != "$state_should" ]; then - case "$state_should" in - present) - echo $aptget install \"$name\" - ;; - absent) - echo $aptget remove \"$name\" - ;; - *) - echo "Unknown state: $state_should" >&2 - exit 1 - ;; - esac -fi +[ "$state_is" = "$state_should" ] && exit 0 + +case "$state_should" in + present) + echo $aptget install \"$name\" + ;; + absent) + echo $aptget remove \"$name\" + ;; + *) + echo "Unknown state: $state_should" >&2 + exit 1 + ;; +esac diff --git a/conf/type/__package_pacman/gencode-remote b/conf/type/__package_pacman/gencode-remote index 5c45fbce..73ed0997 100755 --- a/conf/type/__package_pacman/gencode-remote +++ b/conf/type/__package_pacman/gencode-remote @@ -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)