luci-app-bmx6: fixes error line in logread #578
each time the luci view `network/bmx6/tunnels is displayed it shows results each 5 seconds. It queries to a cgi script bmx6-info.sh that causes a strange error in logread: daemon.err uhttpd[pid]: sh: "tunnels":: unknown operand Prior versions to 19.x release did not show it. Signed-off-by: Pedro <pedrowrt@cas.cat>
This commit is contained in:
parent
83a3fa91b0
commit
71d7806ba1
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ fi
|
|||
|
||||
if [ "$QUERY" == 'tunnels' ]; then
|
||||
tunnels=$(bmx6 -c --jshow tunnels /r=0)
|
||||
if [ -z $tunnels ]; then
|
||||
if [ -z "$tunnels" ]; then
|
||||
echo '{ "tunnels" : [] }'
|
||||
else
|
||||
echo $tunnels
|
||||
|
|
Loading…
Reference in a new issue