Skip to content

Commit

Permalink
at this point we're already in the source dir
Browse files Browse the repository at this point in the history
  • Loading branch information
fauno committed Jan 10, 2017
1 parent 76d340b commit e32877c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/jekyll-pandoc-multiple-formats/pandoc_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,11 @@ def pdf_cover

def pdf_cover!
if has_cover? && !File.exists?(pdf_cover)
Dir::chdir(@site.config['source']) do
Open3::popen3("convert \"#{cover}\" \"#{pdf_cover}\"") do |stdin, stdout, stderr, thread|
STDERR.print stderr.read
Open3::popen3("convert \"#{cover}\" \"#{pdf_cover}\"") do |stdin, stdout, stderr, thread|
STDERR.print stderr.read

# Wait for the process to finish
thread.value
end
# Wait for the process to finish
thread.value
end
end

Expand Down

0 comments on commit e32877c

Please sign in to comment.