Switch back to ARGS
authorAndrew Ruthven <andrew@etc.gen.nz>
Fri, 11 Jan 2019 11:48:49 +0000 (00:48 +1300)
committerAndrew Ruthven <andrew@etc.gen.nz>
Fri, 11 Jan 2019 11:48:49 +0000 (00:48 +1300)
Since these arguments are local to this script, don't confuse
things.

bin/mythtv_recording_soon

index 400d477..b43825a 100755 (executable)
@@ -17,13 +17,13 @@ fi
 
 if [ "x$1" != "x" ]
 then
-  UPDATE_MOTD_ARGS="--recording-in-warn $1"
+  ARGS="--recording-in-warn $1"
 else
-  UPDATE_MOTD_ARGS="--recording-in-warn 600"
+  ARGS="--recording-in-warn 600"
 fi
 
 /usr/bin/mythtv-status -h ${HOST:=localhost} --return-code-only \
-  --recording-now --next-recording $UPDATE_MOTD_ARGS
+  --recording-now --next-recording $ARGS
 
 if [ $? -eq 1 ]
 then