Skip to content

Commit

Permalink
fix(build): Do not attempt to build the output
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Oct 5, 2017
1 parent 0ff66e4 commit 51f486a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/cobalt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,12 @@ pub fn build(config: &Config) -> Result<()> {
let mut documents = vec![];

let ignore_dest = {
let rel_dest = dest.strip_prefix(source);
if let Ok(rel_dest) = rel_dest {
let ignore_dest = rel_dest.join("**/*");
let ignore_dest = ignore_dest
.to_str()
.ok_or_else(|| format!("Cannot convert pathname {:?} to UTF-8", rel_dest))?
.to_owned();
Some(ignore_dest)
} else {
None
}
let ignore_dest = dest.join("**/*");
let ignore_dest = ignore_dest
.to_str()
.ok_or_else(|| format!("Cannot convert pathname {:?} to UTF-8", dest))?
.to_owned();
Some(ignore_dest)
};

let mut page_files = FilesBuilder::new(source)?;
Expand Down

0 comments on commit 51f486a

Please sign in to comment.