mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
cp: finish progress bar to make it always show up
This commit is contained in:
parent
1f3f9d85f7
commit
cb8c0e79e2
1 changed files with 5 additions and 0 deletions
|
@ -1242,6 +1242,11 @@ pub fn copy(sources: &[PathBuf], target: &Path, options: &Options) -> CopyResult
|
|||
seen_sources.insert(source);
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(pb) = progress_bar {
|
||||
pb.finish();
|
||||
}
|
||||
|
||||
if non_fatal_errors {
|
||||
Err(Error::NotAllFilesCopied)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue