From 879f303382fc9a05ad07cf8fbc8c32a7360257db Mon Sep 17 00:00:00 2001 From: TheAlternateDoctor Date: Tue, 12 Mar 2024 13:13:41 +0100 Subject: [PATCH] Fixed bug with sha-less diff files --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7795f97..35866af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -224,7 +224,7 @@ fn patch_msbt(args: Args) -> ::msbt::Result<()> { let _final_filename = lines.next().unwrap()?; let patch_name = lines.next().unwrap()?; let sha256 = lines.next().unwrap()?; - if sha256 != "\n" { + if sha256 != "" { let bytes = fs::read(args.original.clone()).unwrap(); let hash = sha256::digest(bytes); if hash != sha256 {