From 88b5fef6a453f1fd59cc6c88efb418926920e9d3 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Fri, 11 Jan 2019 23:56:50 +1300 Subject: [PATCH] Change the indenting to be consistent --- bin/mythtv-update-motd | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/bin/mythtv-update-motd b/bin/mythtv-update-motd index a56adc0..8acf2ee 100755 --- a/bin/mythtv-update-motd +++ b/bin/mythtv-update-motd @@ -71,14 +71,18 @@ fi ret=0 mythtv-status $UPDATE_MOTD_ARGS -h $HOST >> $TEMPFILE || ret=$? if [ $ret -eq 0 -o $ret -eq 1 ]; then - if [ ! -f $TEMPFILE ]; then - echo My temporary file has gone away, failed. - exit 1 - else - mv $TEMPFILE $WORKFILE - fi -else - # Something else went wrong, remove the temp file. - rm $TEMPFILE + if [ ! -f $TEMPFILE ]; then + echo My temporary file has gone away, failed. exit 1 + else + mv $TEMPFILE $WORKFILE + fi +else + # Something else went wrong, remove the temp file. + rm $TEMPFILE + exit 1 fi + +# Local Variables: +# sh-basic-offset: 2 +# End: -- 2.30.2