Skip to content

Commit

Permalink
add a small unicode tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Apr 16, 2024
1 parent 100bf76 commit 8d04284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ impl Interpreter for CmdExeInterpreter {
let build_env_path = args.work_dir.join("build_env.bat");
let build_script_path = args.work_dir.join("conda_build.bat");

tokio::fs::write(&build_env_path, &script).await?;
tokio::fs::write(&build_env_path, &script.replace('\n', "\r\n").as_bytes()).await?;

let build_script = format!(
"{}\n{}",
CMDEXE_PREAMBLE.replace("((script_path))", &build_env_path.to_string_lossy()),
args.script
);
tokio::fs::write(&build_script_path, &build_script).await?;
tokio::fs::write(&build_script_path, &build_script.replace('\n', "\r\n").as_bytes()).await?;

let build_script_path_str = build_script_path.to_string_lossy().to_string();
let cmd_args = ["cmd.exe", "/d", "/c", &build_script_path_str];
Expand Down

0 comments on commit 8d04284

Please sign in to comment.