diff --git a/p/src/commands/prune.rs b/p/src/commands/prune.rs index 11fbc3d..d7a364e 100644 --- a/p/src/commands/prune.rs +++ b/p/src/commands/prune.rs @@ -33,13 +33,7 @@ pub fn execute(force: bool, dry_run: bool) -> Result<()> { let mut errors = 0; for job in &to_prune { - let remote_rm = format!( - "rm -rf {}/.p/jobs/{id} {}/.p/workdirs/{id}", - // use the worker's home via SSH expansion - "~", - "~", - id = job.id - ); + let remote_rm = format!("rm -rf ~/.p/jobs/{id} ~/.p/workdirs/{id}", id = job.id); println!( " {} {} ({})",