summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorHermes Agent <hermes@localhost>2026-08-11 21:15:26 +0000
committerHermes Agent <hermes@localhost>2026-08-11 21:15:26 +0000
commit1860cc5beb8df6e85d0f9690e5852709a534ebd7 (patch)
tree8b11724e2e181d3ef2e5bb86dd421f29936c4958 /src/main.rs
parentc5a9936238cb116808074e164810ef86e6c6afdb (diff)
Make independent Hasher archive build portable
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
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(