From 1352c5f559199dd0ecbbc12ac1b8a961d7279769 Mon Sep 17 00:00:00 2001 From: RafayAhmad7548 Date: Thu, 3 Sep 2026 13:12:09 +0500 Subject: [PATCH] fix(install): remove correct file on failed verification --- src/commands/install.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/install.rs b/src/commands/install.rs index 45b7579..d04bd4a 100644 --- a/src/commands/install.rs +++ b/src/commands/install.rs @@ -88,7 +88,7 @@ impl Install { let verified = verify_sha512(&data, &file.hashes.sha512); if !verified { - tokio::fs::remove_file("server.jar").await?; + tokio::fs::remove_file(&file.filename).await?; return Err("sha1 verifaction failed for downloaded file".into()); }