Fix 'run' not to continue after interrupted command
Signed-off-by: Detlev Zundel <dzu@denx.de>
This commit is contained in:
parent
9045f33c02
commit
5afb202093
common
|
@ -1336,7 +1336,7 @@ int run_command (const char *cmd, int flag)
|
||||||
|
|
||||||
/* Did the user stop this? */
|
/* Did the user stop this? */
|
||||||
if (had_ctrlc ())
|
if (had_ctrlc ())
|
||||||
return 0; /* if stopped then not repeatable */
|
return -1; /* if stopped then not repeatable */
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc ? rc : repeatable;
|
return rc ? rc : repeatable;
|
||||||
|
|
Loading…
Reference in New Issue