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()); }