From: Andrew Ruthven Date: Sun, 16 Jul 2023 04:01:12 +0000 (+1200) Subject: Make Lintian happy that this is bashism clean X-Git-Tag: 1.1.0~3 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=738a6b07c72937c1867c846089c2594c6ea39299;p=mythtv-status.git 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. --- 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 }