nsh: fix compile break about closing CONFIG_NSH_DISABLESCRIPT

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-09-10 22:29:01 +08:00 committed by Xiang Xiao
parent 16c9068d5f
commit 5a5448df04

View File

@ -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);