shell: mufs: fix order
This commit is contained in:
parent
5cc4824fdb
commit
9a2888341d
1 changed files with 3 additions and 2 deletions
|
@ -316,9 +316,9 @@ int shell_cp(struct console *con, size_t argc, const char **argv)
|
||||||
goto err_close_in;
|
goto err_close_in;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (count < total) {
|
draw_progress(con->fp, count, total);
|
||||||
draw_progress(con->fp, count, total);
|
|
||||||
|
|
||||||
|
while (count < total) {
|
||||||
ret = mufs_read(in, data, sizeof data);
|
ret = mufs_read(in, data, sizeof data);
|
||||||
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
|
@ -330,6 +330,7 @@ int shell_cp(struct console *con, size_t argc, const char **argv)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
count += ret;
|
count += ret;
|
||||||
|
draw_progress(con->fp, count, total);
|
||||||
}
|
}
|
||||||
|
|
||||||
fputc('\n', con->fp);
|
fputc('\n', con->fp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue