diff --git a/src/bin/cleanupdupes.rs b/src/bin/cleanupdupes.rs index c34fc26..78abf52 100644 --- a/src/bin/cleanupdupes.rs +++ b/src/bin/cleanupdupes.rs @@ -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}",); } } }