Skip to content

Commit

Permalink
fix: 🎨 Avod mixing / and \ in Windows exports
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Dec 23, 2022
1 parent 736627d commit 30cf198
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ fn export_environment(export_file: &PathBuf, exports: &[String]) -> Result<(), E
info!("{} Creating export file", emoji::WRENCH);
let mut file = File::create(export_file)?;
for e in exports.iter() {
#[cfg(windows)]
let e = e.replace('/', r#"\"#);
file.write_all(e.as_bytes())?;
file.write_all(b"\n")?;
}
Expand Down

0 comments on commit 30cf198

Please sign in to comment.