commit | 21e4ed93e360c836e011a7de1da6f56bfadcb31b | [log] [tgz] |
---|---|---|
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Wed Feb 21 13:00:37 2018 +0200 |
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Thu Feb 22 11:52:15 2018 +0200 |
tree | c78e7b7eaad3e5c56c20c0931009710c2cbf5a4d | |
parent | 982c73e11823a8fd5b32226531b6591672efa30b [diff] |
shared/shell: Set NON_INTERACTIVE env This sets NON_INTERACTIVE environment variable which applications can then use to query under what mode they are running.
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 @@ 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();