Diff between 982c73e11823a8fd5b32226531b6591672efa30b and 21e4ed93e360c836e011a7de1da6f56bfadcb31b

Changed Files

File Additions Deletions Status
src/shared/shell.c +3 -0 modified

Full Patch

diff --git a/src/shared/shell.c b/src/shared/shell.c
index 0f6d613..85657c2 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -818,6 +818,9 @@ void bt_shell_init(int argc, char **argv, const struct bt_shell_opt *opt)
 	data.argv = argv + optind;
 	data.mode = (data.argc > 0);
 
+	if (data.mode)
+		bt_shell_set_env("NON_INTERACTIVE", &data.mode);
+
 	main_loop = g_main_loop_new(NULL, FALSE);
 
 	rl_init();