diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index e094b5cd..e2d6c268 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -15,6 +15,7 @@ pub use self::html_handlebars::HtmlHandlebars; mod html_handlebars; +use std::fs; use std::io::Read; use std::path::PathBuf; use std::process::{Command, Stdio}; @@ -152,6 +153,8 @@ impl Renderer for CmdRenderer { fn render(&self, ctx: &RenderContext) -> Result<()> { info!("Invoking the \"{}\" renderer", self.cmd); + let _ = fs::create_dir_all(&ctx.destination); + let mut child = self.compose_command()? .stdin(Stdio::piped()) .stdout(Stdio::inherit())