mirror of
https://github.com/G2-Games/lbee-utils.git
synced 2025-04-19 07:12:55 -05:00
Fixed file creation issue in non-batch czutil
replace
This commit is contained in:
parent
a4bb11aeb4
commit
77365cf089
2 changed files with 1 additions and 9 deletions
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue