cli: prevent indenting if simple output is requested
This commit is contained in:
parent
25b9b4b827
commit
f60010a424
1 changed files with 1 additions and 1 deletions
2
cli.c
2
cli.c
|
@ -72,7 +72,7 @@ static void receive_call_result_data(struct ubus_request *req, int type, struct
|
|||
if (!msg)
|
||||
return;
|
||||
|
||||
str = blobmsg_format_json_indent(msg, true, 0);
|
||||
str = blobmsg_format_json_indent(msg, true, simple_output ? -1 : 0);
|
||||
printf("%s\n", str);
|
||||
free(str);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue