openNDS / mesh11sd

Mesh11sd is a dynamic parameter configuration daemon for 802.11s mesh networks.
GNU General Public License v2.0
28 stars 4 forks source link

output valid json for `status` option #63

Closed qosmio closed 1 month ago

qosmio commented 1 month ago

Wanted to query and parse the output in jq, but was getting the following errors.

mesh11sd status | jq --exit-status >/dev/null; echo $?
jq: parse error: Expected separator between values at line 24, column 14
5

After the change.

mesh11sd status | jq --exit-status >/dev/null; echo $?
0
bluewavenet commented 1 month ago

@qosmio Good find, thank you!

bluewavenet commented 1 month ago

@qosmio Also see #65