]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
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 400d477e20642f4225277729691c0f5f2f2a1602..b43825a05875d358bbd2ddbe55c4353a4e868ddf 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