Better output when deleting dupes.
This commit is contained in:
parent
80b0412441
commit
031365a5d7
@ -71,12 +71,13 @@ fn main() -> anyhow::Result<()> {
|
||||
println!("\n{hash}:");
|
||||
println!(" keep: {}", it.next().unwrap());
|
||||
for p in it {
|
||||
println!(" rm: {p}",);
|
||||
if std::env::var(ENV_VAR_TO_DELETE).is_ok() {
|
||||
println!("DELETING {p}");
|
||||
println!(" rm: {p}",);
|
||||
if let Some(e) = remove_file(p).err() {
|
||||
eprintln!("Failed to remove {p}: {e}");
|
||||
}
|
||||
} else {
|
||||
println!("DRYrm: {p}",);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user