aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index b6bb56d..9e831cd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -112,8 +112,8 @@ fn main() -> anyhow::Result<()> {
"vmlinuz",
)?;
- fs::remove_dir_all(file_name)?;
- fs::remove_file(file_name.trim_end_matches(".tar.xz"))?;
+ fs::remove_file(file_name)?;
+ fs::remove_dir_all(file_name.trim_end_matches(".tar.xz"))?;
Ok(())
}