From: Andrew Ruthven <andrew@etc.gen.nz>
Date: Mon, 17 Jul 2023 11:29:32 +0000 (+1200)
Subject: Don't worry if $TEMPFILE isn't present
X-Git-Tag: 1.1.0~1
X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9445077ebbd3935264e4636249258579d9c1e5a;p=mythtv-status.git

Don't worry if $TEMPFILE isn't present
---

diff --git a/bin/mythtv-update-motd b/bin/mythtv-update-motd
index cc6c809..ba9ebec 100755
--- a/bin/mythtv-update-motd
+++ b/bin/mythtv-update-motd
@@ -92,7 +92,7 @@ if [ $ret -eq 0  ] || [ $ret -eq 1 ]; then
   fi
 else
   # Something else went wrong, remove the temp file.
-  rm $TEMPFILE
+  rm -f $TEMPFILE
   exit 1
 fi