Fix custom steps in Windows (fix #205)

This commit is contained in:
Roey Darwish Dror
2019-08-22 21:46:06 +03:00
parent d0245665ab
commit 2392a8bf9b
2 changed files with 4 additions and 4 deletions

View File

@@ -23,12 +23,12 @@ lazy_static! {
}
#[cfg(unix)]
fn shell() -> String {
pub fn shell() -> String {
env::var("SHELL").unwrap_or_else(|_| "sh".to_string())
}
#[cfg(windows)]
fn shell() -> &'static str {
pub fn shell() -> &'static str {
which("pwsh").map(|_| "pwsh").unwrap_or("powershell")
}