Skip to content

Commit

Permalink
[FIX] ytest should now work on both linux and windows again
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr0a3 committed Oct 27, 2024
1 parent 0bbcdac commit 74aaa25
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/ytest/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ fn main() {
let mut code = 0;

for cmd in parsed.cmd {
let args = cmd .replace("%s", path_str)
.replace("%c", path2_str)
.replace("./", "");
let mut args = cmd .replace("%s", path_str)
.replace("%c", path2_str);
if cfg!(target_os = "windows") {
args = args.replace("./", "");
}
let args = unescaper::unescape(&args).unwrap();
let args = args.trim();

Expand Down

0 comments on commit 74aaa25

Please sign in to comment.