diff options
| author | Hermes Agent <hermes@localhost> | 2026-08-11 21:15:26 +0000 |
|---|---|---|
| committer | Hermes Agent <hermes@localhost> | 2026-08-11 21:15:26 +0000 |
| commit | 1860cc5beb8df6e85d0f9690e5852709a534ebd7 (patch) | |
| tree | 8b11724e2e181d3ef2e5bb86dd421f29936c4958 /src | |
| parent | c5a9936238cb116808074e164810ef86e6c6afdb (diff) | |
Make independent Hasher archive build portable
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 9e081a8..f468124 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,10 @@ fn main() { let archive_existing = env::args().any(|argument| argument == "--archive-existing"); if !archive_existing { if workdir.exists() { - fs::remove_dir_all(&workdir).expect("remove previous Hasher workdir"); + run( + Command::new("sudo").args(["rm", "-rf"]).arg(&workdir), + "remove previous Hasher workdir", + ); } fs::create_dir_all(&workdir).expect("create Hasher workdir"); run( |