cp: finish progress bar to make it always show up

This commit is contained in:
Terts Diepraam 2023-09-02 18:46:18 +02:00
parent 1f3f9d85f7
commit cb8c0e79e2

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 {