From: Andrew Ruthven Date: Mon, 31 Dec 2018 08:49:59 +0000 (+1300) Subject: Don't repeat ourselves X-Git-Tag: 1.0.0~28 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51c0c5109aa5a2451e3028f26dc7a1ea2384e3c0;p=mythtv-status.git Don't repeat ourselves --- diff --git a/bin/mythtv-update-motd b/bin/mythtv-update-motd index 062a52e..05babaf 100755 --- a/bin/mythtv-update-motd +++ b/bin/mythtv-update-motd @@ -16,7 +16,7 @@ fi if [ -d /etc/update-motd.d ] then WORKFILE=/var/run/motd.mythtv-status - TEMPFILE=/var/run/motd.mythtv-status.new + TEMPFILE=${WORKFILE}.new else # Debian Wheezy+ handles the MOTD differently. [ -f /var/run/motd.dynamic ] && WORKFILE=/var/run/motd.dynamic