mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Suspend the progress bar before printing the copied files.
This commit is contained in:
committed by
Sylvestre Ledru
parent
e307f624e8
commit
1b004053ac
+7
-1
@@ -1350,7 +1350,13 @@ fn copy_file(
|
||||
}
|
||||
|
||||
if options.verbose {
|
||||
println!("{}", context_for(source, dest));
|
||||
if let Some(pb) = progress_bar {
|
||||
pb.suspend(|| {
|
||||
println!("{}", context_for(source, dest));
|
||||
});
|
||||
} else {
|
||||
println!("{}", context_for(source, dest));
|
||||
}
|
||||
}
|
||||
|
||||
// Calculate the context upfront before canonicalizing the path
|
||||
|
||||
Reference in New Issue
Block a user