Skip to content

Commit

Permalink
more trim
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 18, 2024
1 parent 56aa379 commit 0fb469b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/src/modules/binarize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ impl Module for Binarize {

let mut report = Report::new();
let tools_path = {
let default = dirs::home_dir().expect("home directory exists").join(".local/share/arma3tools");
let default = dirs::home_dir()
.expect("home directory exists")
.join(".local/share/arma3tools");
if let Ok(path) = std::env::var("HEMTT_BI_TOOLS") {
PathBuf::from(path)
} else {
Expand Down Expand Up @@ -290,11 +292,13 @@ impl Module for Binarize {
.source
.trim_start_matches(ctx.tmp().to_str().expect("path is valid utf-8"))
.trim_start_matches('/')
.trim_start_matches('\\')
.replace('/', "\\"),
&target
.output
.trim_start_matches(ctx.tmp().to_str().expect("path is valid utf-8"))
.trim_start_matches('/')
.trim_start_matches('\\')
.replace('/', "\\"),
&target.entry.replace('/', "\\"),
])
Expand Down

0 comments on commit 0fb469b

Please sign in to comment.