]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Make Lintian happy that this is bashism clean
authorAndrew Ruthven <andrew@etc.gen.nz>
Sun, 16 Jul 2023 04:01:12 +0000 (16:01 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Mon, 17 Jul 2023 11:31:30 +0000 (23:31 +1200)
Lintian complained about the use of $HOSTNAME, even though I was setting it,
not using the pre-set value by Bash. Rather than add an override, I'll just
rename the variable. This will allow Lintian to continue to check this file
if any bashisms do creep in.

molly-guard/40-mythtv-recording-soon

index 09a35069327ecae34ac8ffafa2eb98aa2c4c62e6..d12e89380a4cf6333bfae0261179e8668f1adfc5 100755 (executable)
@@ -13,11 +13,11 @@ if [ ! -f /usr/bin/mythtv_recording_soon ]; then
   exit 0
 fi
 
-HOSTNAME="$(hostname --short)"
+HOST="$(hostname --short)"
 
 sigh()
 {
-  echo "Good thing I asked; I won't $MOLLYGUARD_CMD $HOSTNAME ..." >&2
+  echo "Good thing I asked; I won't $MOLLYGUARD_CMD $HOST ..." >&2
   exit 1
 }