1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 04:27:45 +00:00

Merge pull request #5712 from sylvestre/shred

shred: improve some output to match GNU's
This commit is contained in:
Daniel Hofstetter 2023-12-24 14:05:35 +01:00 committed by GitHub
commit 8ede675088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -435,7 +435,7 @@ fn wipe_file(
let pass_name = pass_name(&pass_type);
if total_passes < 10 {
show_error!(
"{}: pass {}/{} ({})... ",
"{}: pass {}/{} ({})...",
path.maybe_quote(),
i + 1,
total_passes,
@ -443,7 +443,7 @@ fn wipe_file(
);
} else {
show_error!(
"{}: pass {:2.0}/{:2.0} ({})... ",
"{}: pass {:2.0}/{:2.0} ({})...",
path.maybe_quote(),
i + 1,
total_passes,
@ -522,7 +522,7 @@ fn wipe_name(orig_path: &Path, verbose: bool) -> Option<PathBuf> {
show_error!(
"{}: renamed to {}",
last_path.maybe_quote(),
new_path.quote()
new_path.display()
);
}