fix win32 build

6cad4c35e9 calls get_shell, but
that isn't available on windows... it is now.
This commit is contained in:
Wez Furlong committed 2022-04-06 18:42:56 -07:00
1 parent 0cfdf0999c
commit 6e07fc5b9a
1 file changed
+8
+8
View File
@@ -438,6 +438,14 @@ impl CommandBuilder {
block
}
pub fn get_shell(&self) -> anyhow::Result<String> {
Ok(self
.get_env("ComSpec")
.unwrap_or(OsStr::new("cmd.exe"))
.into()
.into_string()?)
}
pub(crate) fn cmdline(&self) -> anyhow::Result<(Vec<u16>, Vec<u16>)> {
let mut cmdline = Vec::<u16>::new();