mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +00:00
shred: improve some output to match GNU's
This commit is contained in:
parent
6b1f51385f
commit
c5b08f1c4a
1 changed files with 3 additions and 3 deletions
|
@ -435,7 +435,7 @@ fn wipe_file(
|
||||||
let pass_name = pass_name(&pass_type);
|
let pass_name = pass_name(&pass_type);
|
||||||
if total_passes < 10 {
|
if total_passes < 10 {
|
||||||
show_error!(
|
show_error!(
|
||||||
"{}: pass {}/{} ({})... ",
|
"{}: pass {}/{} ({})...",
|
||||||
path.maybe_quote(),
|
path.maybe_quote(),
|
||||||
i + 1,
|
i + 1,
|
||||||
total_passes,
|
total_passes,
|
||||||
|
@ -443,7 +443,7 @@ fn wipe_file(
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
show_error!(
|
show_error!(
|
||||||
"{}: pass {:2.0}/{:2.0} ({})... ",
|
"{}: pass {:2.0}/{:2.0} ({})...",
|
||||||
path.maybe_quote(),
|
path.maybe_quote(),
|
||||||
i + 1,
|
i + 1,
|
||||||
total_passes,
|
total_passes,
|
||||||
|
@ -522,7 +522,7 @@ fn wipe_name(orig_path: &Path, verbose: bool) -> Option<PathBuf> {
|
||||||
show_error!(
|
show_error!(
|
||||||
"{}: renamed to {}",
|
"{}: renamed to {}",
|
||||||
last_path.maybe_quote(),
|
last_path.maybe_quote(),
|
||||||
new_path.quote()
|
new_path.display()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue