diff options
Diffstat (limited to 'src/init/mod.rs')
-rw-r--r-- | src/init/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/init/mod.rs b/src/init/mod.rs index dfe360b43..893a063c7 100644 --- a/src/init/mod.rs +++ b/src/init/mod.rs @@ -1,3 +1,4 @@ +use crate::utils::create_command; use std::ffi::OsStr; use std::path::{Path, PathBuf}; use std::{env, io}; @@ -51,9 +52,7 @@ impl StarshipPath { return self.sprint(); } let str_path = self.str_path()?; - let res = std::process::Command::new("cygpath.exe") - .arg(str_path) - .output(); + let res = create_command("cygpath").and_then(|mut cmd| cmd.arg(str_path).output()); let output = match res { Ok(output) => output, Err(e) => { |