shell: mufs: fix order

This commit is contained in:
S.J.R. van Schaik 2017-10-03 16:44:02 +02:00
parent 5cc4824fdb
commit 9a2888341d

View file

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