mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
Merge pull request #5235 from tertsdiepraam/cp-finish-progress-bar
`cp`: finish progress bar to make it always show up
This commit is contained in:
commit
468ead4ce6
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