From 77365cf089213095943579ffdb2166546935adba Mon Sep 17 00:00:00 2001 From: G2-Games Date: Tue, 16 Jul 2024 03:17:32 -0500 Subject: [PATCH] Fixed file creation issue in non-batch `czutil` replace --- utils/Cargo.toml | 2 +- utils/src/bin/czutil.rs | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/utils/Cargo.toml b/utils/Cargo.toml index 4cd80ed..d37dc3a 100644 --- a/utils/Cargo.toml +++ b/utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "utils" -version = "0.1.0" +version = "0.1.1" edition = "2021" license = "GPL-3.0-or-later" authors.workspace = true diff --git a/utils/src/bin/czutil.rs b/utils/src/bin/czutil.rs index 5733474..d226f43 100644 --- a/utils/src/bin/czutil.rs +++ b/utils/src/bin/czutil.rs @@ -219,14 +219,6 @@ fn main() { Error::raw(ErrorKind::ValueValidation, "Replacement must be a file\n").exit() } - if !output.is_file() { - Error::raw( - ErrorKind::ValueValidation, - "Replacement output must be a file\n", - ) - .exit() - } - // Replace the input file with the new image replace_cz(&input, &output, &replacement, version, depth).unwrap(); }