nsh: fix nsh startup failure
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
5e4c4d7393
commit
fa589ae622
@ -165,10 +165,17 @@ int nsh_script(FAR struct nsh_vtbl_s *vtbl, FAR const FAR char *cmd,
|
|||||||
nsh_output(vtbl, "%s", buffer);
|
nsh_output(vtbl, "%s", buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = nsh_parse(vtbl, buffer);
|
if (vtbl->np.np_flags & NSH_PFLAG_IGNORE)
|
||||||
|
{
|
||||||
|
nsh_parse(vtbl, buffer);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ret = nsh_parse(vtbl, buffer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (ret >= 0 || (vtbl->np.np_flags & NSH_PFLAG_IGNORE));
|
while (ret >= 0);
|
||||||
|
|
||||||
/* Close the script file */
|
/* Close the script file */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user