]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Use the default value without setting HOST
authorAndrew Ruthven <andrew@etc.gen.nz>
Wed, 26 Jul 2023 12:43:47 +0000 (00:43 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Wed, 26 Jul 2023 12:58:08 +0000 (00:58 +1200)
bin/mythtv_recording_now
bin/mythtv_recording_soon

index bb62f9a369d1af347463b002eb9c54fcf034bd12..331c4ea7c6104df7d22636f087e11c694beececb 100755 (executable)
@@ -15,7 +15,7 @@ then
   . /etc/default/mythtv-status
 fi
 
-/usr/bin/mythtv-status -h "${HOST:=localhost}" --return-code-only --recording-now
+/usr/bin/mythtv-status -h "${HOST:-localhost}" --return-code-only --recording-now
 
 if [ $? -eq 1 ]
 then
index 529abcb528f5088acd9693bfc044b64f19655341..e4d14671185343c8d2f42fe28242b23c52044842 100755 (executable)
@@ -22,7 +22,7 @@ else
   ARGS="--recording-in-warn 600"
 fi
 
-/usr/bin/mythtv-status -h "${HOST:=localhost}" --return-code-only \
+/usr/bin/mythtv-status -h "${HOST:-localhost}" --return-code-only \
   --recording-now --next-recording $ARGS
 
 if [ $? -eq 1 ]