diff --git a/src/steps/powershell.rs b/src/steps/powershell.rs index 07f1fcd3..2b978fe4 100644 --- a/src/steps/powershell.rs +++ b/src/steps/powershell.rs @@ -3,7 +3,9 @@ use crate::executor::CommandExt; use crate::terminal::{is_dumb, print_separator}; use crate::utils::{require_option, which, PathExt}; use anyhow::Result; -use std::path::{Path, PathBuf}; +#[cfg(windows)] +use std::path::Path; +use std::path::PathBuf; use std::process::Command; pub struct Powershell {