From cfc00fd7bc24352ea8b2f6f1b6f45b96dcda64f2 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Tue, 1 Oct 2024 18:33:29 +0200 Subject: [PATCH] remove .iw4xrevision --- src/iw4x.rs | 2 -- src/main.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/iw4x.rs b/src/iw4x.rs index cebab57..b5413bf 100644 --- a/src/iw4x.rs +++ b/src/iw4x.rs @@ -5,7 +5,6 @@ use crate::http_async; use crate::misc; use crate::structs; -use std::fs; use std::path::Path; pub async fn remote_revision() -> u16 { @@ -44,5 +43,4 @@ pub async fn update(dir: &Path, cache: &mut structs::Cache) { .unwrap(); cache.iw4x_revision = format!("r{remote}"); - fs::write(dir.join(".iw4xrevision"), &cache.iw4x_revision).unwrap(); } diff --git a/src/main.rs b/src/main.rs index 6d989c8..c7ced48 100644 --- a/src/main.rs +++ b/src/main.rs @@ -355,7 +355,7 @@ async fn update( std::process::exit(0); } - let old_files = [".sha-sums"]; + let old_files = [".sha-sums", ".iw4xrevision"]; for f in old_files { if dir.join(f).exists() { match fs::remove_file(dir.join(f)) {