From 168e256e3b79dc4c0ebff7758d46841a7b98a685 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 12 Jan 2019 00:25:28 +1300 Subject: [PATCH] Only set the variable in the code path where we need it --- bin/mythtv-update-motd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mythtv-update-motd b/bin/mythtv-update-motd index b03bb21..59a54f5 100755 --- a/bin/mythtv-update-motd +++ b/bin/mythtv-update-motd @@ -21,7 +21,6 @@ then fi WORKFILE=/run/motd -STUBFILE=/run/motd.orig TEMPFILE=/run/motd.mythtv-status if [ -d /etc/update-motd.d ] @@ -35,6 +34,8 @@ else # We are going to generate an motd file to be used for the system, # with the previous content first, then the MythTV Status. + STUBFILE=/run/motd.orig + if [ -f /etc/os-release ] then DISTRO=$(grep ^ID= /etc/os-release | awk -F= '{ print $2 }') -- 2.30.2