From cb8c0e79e2d9dc3ba72d97cc35e9ab9c952e976b Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sat, 2 Sep 2023 18:46:18 +0200 Subject: [PATCH] cp: finish progress bar to make it always show up --- src/uu/cp/src/cp.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/uu/cp/src/cp.rs b/src/uu/cp/src/cp.rs index 5be613ec6..7dbf8aedb 100644 --- a/src/uu/cp/src/cp.rs +++ b/src/uu/cp/src/cp.rs @@ -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 {