Made sure we create the themes directory (#586)
This commit is contained in:
parent
186e649530
commit
ffb90bb9e2
|
@ -245,6 +245,10 @@ impl HtmlHandlebars {
|
||||||
|
|
||||||
for custom_file in custom_files {
|
for custom_file in custom_files {
|
||||||
let output_location = destination.join(custom_file);
|
let output_location = destination.join(custom_file);
|
||||||
|
if let Some(parent) = output_location.parent() {
|
||||||
|
fs::create_dir_all(parent)
|
||||||
|
.chain_err(|| format!("Unable to create {}", parent.display()))?;
|
||||||
|
}
|
||||||
debug!(
|
debug!(
|
||||||
"Copying {} -> {}",
|
"Copying {} -> {}",
|
||||||
custom_file.display(),
|
custom_file.display(),
|
||||||
|
|
Loading…
Reference in New Issue