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: