diff --git a/lib/review/pdfmaker.rb b/lib/review/pdfmaker.rb index 21a1f3cf7..6f40a1b93 100644 --- a/lib/review/pdfmaker.rb +++ b/lib/review/pdfmaker.rb @@ -241,7 +241,7 @@ def build_pdf end call_hook('hook_beforemakeindex') - if @config['pdfmaker']['makeindex'] && File.exist?("#{@mastertex}.idx") + if @config['pdfmaker']['makeindex'] && File.size?("#{@mastertex}.idx") system_or_raise(*[makeindex_command, makeindex_options, @mastertex].flatten.compact) system_or_raise(*[texcommand, texoptions, "#{@mastertex}.tex"].flatten.compact) end