From 738a6b07c72937c1867c846089c2594c6ea39299 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sun, 16 Jul 2023 16:01:12 +1200 Subject: [PATCH] Make Lintian happy that this is bashism clean 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/molly-guard/40-mythtv-recording-soon b/molly-guard/40-mythtv-recording-soon index 09a3506..d12e893 100755 --- a/molly-guard/40-mythtv-recording-soon +++ b/molly-guard/40-mythtv-recording-soon @@ -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 } -- 2.30.2