diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-14 16:32:06 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-06 10:22:29 +0200 |
commit | f60010a4243f4ed134062ffd387b386ec9476cf4 (patch) | |
tree | 5927e1af0e53638dd8a8405eaae0785991e9093e /cli.c | |
parent | 25b9b4b827f74482743689386b195dca3b81a0df (diff) | |
download | ubus-f60010a4243f4ed134062ffd387b386ec9476cf4.tar.gz |
cli: prevent indenting if simple output is requested
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |