Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pivotal-cf/bookbinder
Browse files Browse the repository at this point in the history
  • Loading branch information
animatedmax committed Jun 9, 2016
2 parents 6500ec8 + f0e0400 commit 6e8b364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bookbinder/preprocessing/dita_pdf_preprocessor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def preprocess(sections, output_locations, options: {}, output_streams: nil, **_
end

def most_recent_pdf(dir_path)
pdfs_by_modified_date = Dir.glob(dir_path + '*.pdf').sort_by{ |f| File.mtime(f) }
pdfs_by_modified_date = Dir.glob(dir_path + '*/*.pdf').sort_by{ |f| File.mtime(f) }
pdfs_by_modified_date.last
end

Expand Down

0 comments on commit 6e8b364

Please sign in to comment.