From 1e9a5b3fe4c87a1262960e0bfcd66d8f3d77511d Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Thu, 19 Oct 2017 13:21:52 +0200 Subject: [PATCH] shell: return exit code for admin shell --- source/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/main.c b/source/main.c index 6810c46..64796b4 100644 --- a/source/main.c +++ b/source/main.c @@ -63,7 +63,8 @@ int main(void) shell_init(&user_shell, user_cmds, user_con, "tbm $", SHELL_SHOW_EXIT_CODE); - shell_init(&admin_shell, admin_cmds, admin_con, "tbm #", 0); + shell_init(&admin_shell, admin_cmds, admin_con, "tbm #", + SHELL_SHOW_EXIT_CODE); while (1) { shell_parse(&user_shell);