diff --git a/crates/updater/src/lib.rs b/crates/updater/src/lib.rs index 5e18944d..a1b00485 100644 --- a/crates/updater/src/lib.rs +++ b/crates/updater/src/lib.rs @@ -786,7 +786,7 @@ impl Update { // if something went wrong during the extraction, we should restore previous app if let Err(e) = extract_archive(&mut archive, &self.extract_path) { - std::fs::remove_dir(self.extract_path)?; + std::fs::remove_dir(&self.extract_path)?; std::fs::rename(tmp_dir.path(), &self.extract_path)?; return Err(e); }