From 04452bb39adeefaa4a626534c8e2b67caccf5553 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 12 Jan 2019 01:06:15 +1300 Subject: [PATCH] Make the code slightly easier to read --- debian/postinst | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/debian/postinst b/debian/postinst index 2ae2bc9..28a8c3b 100644 --- a/debian/postinst +++ b/debian/postinst @@ -25,22 +25,13 @@ case "$1" in db_get $PACKAGE/enable UPDATE_MOTD="${RET:-true}" - if [ $UPDATE_MOTD = 'true' ] - then - UPDATE_MOTD='yes' - fi + [ $UPDATE_MOTD = 'true' ] && UPDATE_MOTD='yes' # Support the old variable name. - if [ "x$RUN" != "x" ] - then - UPDATE_MOTD=$RUN - fi + [ "x$RUN" != "x" ] && UPDATE_MOTD=$RUN # Support the old variable name. - if [ "x$ARGS" != "x" ] - then - UPDATE_MOTD_ARGS=$ARGS - fi + [ "x$ARGS" != "x" ] && UPDATE_MOTD_ARGS=$ARGS db_get $PACKAGE/email EMAIL="${RET:-none}" -- 2.30.2