fix: proper unix mkdir -p fix
@@ -356,21 +356,20 @@ fn start_remote(&self, remote: impl Remote) -> Result<()> {
}
}
- #[cfg(target_family = "unix")]
+ if platform == Windows {
remote
.command_builder()
.arg("mkdir")
- .arg("-p")
.arg(remote_proxy_path)
.status()?;
-
- #[cfg(target_family = "windows")]
+ } else {
remote
.command_builder()
.arg("mkdir")
.arg("-p")
.arg(remote_proxy_path)
.status()?;
+ }
remote.upload_file(&local_proxy_file, &remote_proxy_file)?;
}
