From 5a5448df040b42944949a44210f4ae4ecba3a71c Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Fri, 10 Sep 2021 22:29:01 +0800 Subject: [PATCH] nsh: fix compile break about closing CONFIG_NSH_DISABLESCRIPT Signed-off-by: Jiuzhu Dong --- nshlib/nsh_consolemain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nshlib/nsh_consolemain.c b/nshlib/nsh_consolemain.c index 5cf09d478..135923cd6 100644 --- a/nshlib/nsh_consolemain.c +++ b/nshlib/nsh_consolemain.c @@ -77,7 +77,7 @@ int nsh_consolemain(int argc, FAR char *argv[]) usbtrace_enable(TRACE_BITSET); #endif -#ifdef CONFIG_NSH_ROMFSETC +#if defined(CONFIG_NSH_ROMFSETC) && !defined(CONFIG_NSH_DISABLESCRIPT) /* Execute the start-up script */ nsh_initscript(&pstate->cn_vtbl);