From 26d52632ca4dd3d7e1cf1c9c3927cf3e78bfd34b Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Sun, 11 May 2025 07:48:47 +0200 Subject: [PATCH] fix .html hash skip --- src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 49edc3e..9944c1f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -300,11 +300,7 @@ async fn update_dir( local_hash = file_path.get_blake3().unwrap().to_lowercase(); let remote = file.blake3.to_lowercase(); - if local_hash != remote { - if file_path.ends_with(".html") { - println_info!("Ignoring mismatched hash for {}", file_path.cute_path()); - continue; - } + if local_hash != remote && !file_path.ends_with(".html") { println_error!("Downloaded file hash does not match remote!\nRemote {remote}, local {local_hash}, {}\nIf this issue persists please try again in 15 minutes.", file_path.cute_path()); println!("Retry download? (Y/n)"); let input = misc::stdin().to_ascii_lowercase();