]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Don't repeat ourselves
authorAndrew Ruthven <andrew@etc.gen.nz>
Mon, 31 Dec 2018 08:49:59 +0000 (21:49 +1300)
committerAndrew Ruthven <andrew@etc.gen.nz>
Mon, 31 Dec 2018 08:49:59 +0000 (21:49 +1300)
bin/mythtv-update-motd

index 062a52e3e735242beaf36c19f1f5e98fc45117bf..05babafa8599be4451448eaf946fccab974eb1e9 100755 (executable)
@@ -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