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:
Daniel Hofstetter 2023-09-03 15:01:01 +02:00 committed by GitHub
commit 468ead4ce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {