Merge pull request #879 from bittorf/master
freifunk-common: neigh.sh: work also with unprettyfied JSON output
This commit is contained in:
commit
85ea846fc1
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ VARS="$VARS neighborLinkQuality:NLQ linkCost:Cost remoteHostname:Host"
|
||||||
|
|
||||||
for HOST in '127.0.0.1' '::1';do
|
for HOST in '127.0.0.1' '::1';do
|
||||||
json_init
|
json_init
|
||||||
json_load "$( echo /links | nc $HOST 9090 | grep ^'{' )" # remove header/non-json
|
json_load "$( echo /links | nc $HOST 9090 | sed -n '/^[}{ ]/p' )" # remove header/non-json
|
||||||
|
|
||||||
if json_is_a links array;then
|
if json_is_a links array;then
|
||||||
json_select links
|
json_select links
|
||||||
|
|
Loading…
Reference in a new issue