Skip to content

Commit

Permalink
Merge pull request #5712 from sylvestre/shred
Browse files Browse the repository at this point in the history
shred: improve some output to match GNU's
  • Loading branch information
cakebaker authored Dec 24, 2023
2 parents 0d05a41 + c5b08f1 commit 8ede675
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/uu/shred/src/shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,15 @@ 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,
pass_name
);
} else {
show_error!(
"{}: pass {:2.0}/{:2.0} ({})... ",
"{}: pass {:2.0}/{:2.0} ({})...",
path.maybe_quote(),
i + 1,
total_passes,
Expand Down Expand Up @@ -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()
);
}

Expand Down

0 comments on commit 8ede675

Please sign in to comment.