From 71d7806ba11d6c350b2d3db1f23fb847b4e834c8 Mon Sep 17 00:00:00 2001 From: "Pedro hates github.com" <39959198+pedro-nonfree@users.noreply.github.com> Date: Mon, 15 Jun 2020 01:53:12 +0200 Subject: [PATCH] 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 --- luci-app-bmx6/bmx6/www/cgi-bin/bmx6-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-bmx6/bmx6/www/cgi-bin/bmx6-info b/luci-app-bmx6/bmx6/www/cgi-bin/bmx6-info index ceebbbb..8f5555e 100755 --- a/luci-app-bmx6/bmx6/www/cgi-bin/bmx6-info +++ b/luci-app-bmx6/bmx6/www/cgi-bin/bmx6-info @@ -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