Fixed file creation issue in non-batch czutil replace

This commit is contained in:
G2-Games 2024-07-16 03:17:32 -05:00
parent a4bb11aeb4
commit 77365cf089
2 changed files with 1 additions and 9 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "utils" name = "utils"
version = "0.1.0" version = "0.1.1"
edition = "2021" edition = "2021"
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
authors.workspace = true authors.workspace = true

View file

@ -219,14 +219,6 @@ fn main() {
Error::raw(ErrorKind::ValueValidation, "Replacement must be a file\n").exit() 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 the input file with the new image
replace_cz(&input, &output, &replacement, version, depth).unwrap(); replace_cz(&input, &output, &replacement, version, depth).unwrap();
} }